version: '3.8'

services:
  dashboard-app-prod:
    build:
      context: .
      dockerfile: Dockerfile.prod
    ports:
      - '3009:80'
    environment:
      - NODE_ENV=production
    env_file:
      - .env.prod
    restart: unless-stopped
    networks:
      - dashboard-network
    healthcheck:
      test: ['CMD', 'curl', '-f', 'http://localhost/health']
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s

networks:
  dashboard-network:
    driver: bridge
