# Production-mode compose for DevOps Dashboard # Usage: # docker compose up --build # # Requires: # - backend/.env populated (copy from backend/.env.example) # - web/.env.local populated (copy from web/.env.local.example) # # For hot-reload dev mode use: # docker compose -f docker-compose.yml -f docker-compose.dev.yml up services: # --------------------------------------------------------------------------- # Backend — DevOps API service # --------------------------------------------------------------------------- backend: build: context: . dockerfile: backend/Dockerfile args: BYTELYST_PACKAGE_SOURCE: ${BYTELYST_PACKAGE_SOURCE:-vendor} container_name: devops-backend env_file: - backend/.env ports: - '4004:4004' networks: - default - platform_net restart: unless-stopped healthcheck: test: ['CMD', 'wget', '-qO-', 'http://localhost:4004/health'] interval: 30s timeout: 5s retries: 3 start_period: 15s # --------------------------------------------------------------------------- # Web — Next.js dashboard # --------------------------------------------------------------------------- web: build: context: . dockerfile: web/Dockerfile args: BYTELYST_PACKAGE_SOURCE: ${BYTELYST_PACKAGE_SOURCE:-vendor} NEXT_PUBLIC_PRODUCT_ID: ${NEXT_PUBLIC_PRODUCT_ID:-devops} NEXT_PUBLIC_PLATFORM_URL: https://api.bytelyst.com/platform/api NEXT_PUBLIC_DEVOPS_API_URL: https://api.bytelyst.com/devops container_name: devops-web ports: - '3049:3000' networks: - default - platform_net restart: unless-stopped depends_on: backend: condition: service_healthy environment: - NODE_ENV=production networks: default: {} platform_net: external: true name: learning_ai_common_plat_default