services:
  admin-web:
    build:
      context: .
      dockerfile: Dockerfile
    image: genex-admin-web:latest
    container_name: genex-admin-web
    restart: unless-stopped
    ports:
      - "${PORT:-3000}:3000"
    environment:
      - TZ=Asia/Shanghai
      - NODE_ENV=production
      - NEXT_TELEMETRY_DISABLED=1
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
      interval: 30s
      timeout: 3s
      retries: 3
      start_period: 40s
    networks:
      - genex-network

networks:
  genex-network:
    driver: bridge
