services: gateway: build: context: . dockerfile: gateway/Dockerfile network: host image: pdf-engine-gateway:dev container_name: pdf-engine-gateway environment: PDFENGINE_ENVIRONMENT: dev PDFENGINE_ENGINE_AVAILABLE: "true" PORT: 8765 ports: - "8765:8765" volumes: - ./gateway:/home/app healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8765/health').read()" ] interval: 20s timeout: 5s retries: 5 start_period: 10s restart: unless-stopped frontend: build: context: ./frontend dockerfile: Dockerfile target: development image: pdf-engine-frontend:dev container_name: pdf-engine-frontend environment: VITE_GATEWAY_URL: http://localhost:8765 ports: - "5173:5173" volumes: - ./frontend:/app - /app/node_modules depends_on: - gateway restart: unless-stopped