services: backend: build: context: . dockerfile: Dockerfile.backend ports: - "8000:8000" environment: EPNET_CHECKPOINT_PATH: /app/checkpoints/demo_x4.pt EPNET_CORS_ORIGINS: http://localhost:3000,http://127.0.0.1:3000 volumes: - ./outputs:/app/outputs - ./checkpoints:/app/checkpoints healthcheck: test: [ "CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/v1/health', timeout=5)" ] interval: 10s timeout: 5s retries: 5 start_period: 5s frontend: build: context: . dockerfile: Dockerfile.frontend ports: - "3000:3000" depends_on: backend: condition: service_healthy healthcheck: test: [ "CMD", "node", "-e", "fetch('http://127.0.0.1:3000').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))" ] interval: 15s timeout: 5s retries: 5 start_period: 10s