2026-07-17 15:13:26 +05:30
|
|
|
services:
|
|
|
|
|
gateway:
|
|
|
|
|
build:
|
2026-07-23 11:31:26 +05:30
|
|
|
context: .
|
|
|
|
|
dockerfile: gateway/Dockerfile
|
|
|
|
|
network: host
|
2026-07-17 15:13:26 +05:30
|
|
|
image: pdf-engine-gateway:dev
|
|
|
|
|
container_name: pdf-engine-gateway
|
|
|
|
|
environment:
|
|
|
|
|
PDFENGINE_ENVIRONMENT: dev
|
2026-07-23 11:31:26 +05:30
|
|
|
PDFENGINE_ENGINE_AVAILABLE: "true"
|
2026-07-23 17:02:45 +05:30
|
|
|
PORT: 8765
|
2026-07-17 15:13:26 +05:30
|
|
|
ports:
|
2026-07-23 17:02:45 +05:30
|
|
|
- "8765:8765"
|
2026-07-17 15:13:26 +05:30
|
|
|
volumes:
|
|
|
|
|
- ./gateway:/home/app
|
|
|
|
|
healthcheck:
|
2026-07-23 17:02:45 +05:30
|
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8765/health').read()" ]
|
2026-07-17 15:13:26 +05:30
|
|
|
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:
|
2026-07-23 17:02:45 +05:30
|
|
|
VITE_GATEWAY_URL: http://localhost:8765
|
2026-07-17 15:13:26 +05:30
|
|
|
ports:
|
|
|
|
|
- "5173:5173"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./frontend:/app
|
|
|
|
|
- /app/node_modules
|
|
|
|
|
depends_on:
|
|
|
|
|
- gateway
|
|
|
|
|
restart: unless-stopped
|