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

networks:
  rwadurian-network:
    driver: bridge
