-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 1.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (48 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
# ComPDF PDF Generation engine. Publishing this port also supports local API development.
compdf-app:
image: compdfkit/pdf-generation:1.0.0
platform: ${COMPDF_IMAGE_PLATFORM:-linux/amd64}
env_file:
- .env
environment:
COMPDFKIT_LICENSE: ${COMPDF_LICENSE_KEY:?COMPDF_LICENSE_KEY must be set in .env}
ports:
- "7001:7001"
mem_limit: 16g
restart: unless-stopped
networks:
- compdf-internal
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:7001/livez"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
# Public Web UI and Express API; built from the multi-stage Dockerfile.
compdf-generation:
image: compdf-generation-web:latest
build:
context: .
dockerfile: Dockerfile
args:
NODE_IMAGE: ${NODE_IMAGE:-node:22-bookworm-slim}
depends_on:
compdf-app:
condition: service_healthy
environment:
COMPDF_PDF_BASE_URL: http://compdf-app:7001
COMPDF_TIMEOUT_MS: ${COMPDF_TIMEOUT_MS:-120000}
TEMPLATE_STORAGE_DIR: /data/templates
volumes:
# Template source files and metadata must survive image/container updates.
- "${TEMPLATE_STORAGE_DIR:-./data/templates}:/data/templates"
ports:
- "${APP_PORT:-8090}:8090"
restart: unless-stopped
networks:
- compdf-internal
networks:
# Both services share this private bridge network; only compdf-generation publishes a port.
compdf-internal:
driver: bridge