Files
pdf/docker-compose.yml
T

42 lines
1005 B
YAML
Raw Normal View History

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"
PORT: 8765
2026-07-17 15:13:26 +05:30
ports:
- "8765:8765"
2026-07-17 15:13:26 +05:30
volumes:
- ./gateway:/home/app
healthcheck:
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:
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