Skip to content

Commit 2ca1bd3

Browse files
committed
fix(docker): mount config/prompts volumes + add healthcheck
- Mount config/ and prompts/ so users can customize models and prompts - Add healthcheck using /api/health endpoint - Use env var for port mapping - Switch env_file to .env (Docker convention)
1 parent 69c7bb8 commit 2ca1bd3

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ services:
66
container_name: contentpipe
77
restart: unless-stopped
88
ports:
9-
- "8765:8765"
9+
- "${CONTENTPIPE_PORT:-8765}:8765"
1010
env_file:
1111
- .env
1212
extra_hosts:
1313
- "host.docker.internal:host-gateway"
1414
volumes:
1515
- ./output:/app/output
16+
- ./config:/app/config
17+
- ./prompts:/app/prompts
18+
healthcheck:
19+
test: ["CMD", "python3", "-c", "import httpx; r=httpx.get('http://localhost:8765/api/health'); r.raise_for_status()"]
20+
interval: 30s
21+
timeout: 10s
22+
retries: 3
23+
start_period: 15s

0 commit comments

Comments
 (0)