41 lines
984 B
YAML
41 lines
984 B
YAML
services:
|
|||
|
|
gateway:
|
||
|
|
build:
|
||
|
|
context: ./gateway
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
image: pdf-engine-gateway:dev
|
||
|
|
container_name: pdf-engine-gateway
|
||
|
|
environment:
|
||
|
|
PDFENGINE_ENVIRONMENT: dev
|
||
|
|
PDFENGINE_ENGINE_AVAILABLE: "false"
|
||
|
|
PORT: 8000
|
||
|
|
ports:
|
||
|
|
- "8000:8000"
|
||
|
|
volumes:
|
||
|
|
- ./gateway:/home/app
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/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://gateway:8000
|
||
|
|
ports:
|
||
|
|
- "5173:5173"
|
||
|
|
volumes:
|
||
|
|
- ./frontend:/app
|
||
|
|
- /app/node_modules
|
||
|
|
depends_on:
|
||
|
|
- gateway
|
||
|
|
restart: unless-stopped
|