-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (65 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
68 lines (65 loc) · 1.79 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
services:
# Main CLI service - for running one-off commands
content-engine:
build:
context: .
dockerfile: Dockerfile
container_name: content-engine
ports:
- "5000:5000"
volumes:
# Persist SQLite database
- content-db:/app/data
- ./content.db:/app/content.db
# Context files
- ./context:/app/context
# Mount .env file for credentials
- ./.env:/app/.env:ro
# Blueprints (for development)
- ./blueprints:/app/blueprints:ro
environment:
- PYTHONUNBUFFERED=1
restart: "no"
# Default: show help. Override with docker-compose run
command: ["uv", "run", "content-engine", "--help"]
# Job Worker - processes the SQLite queue
worker:
build:
context: .
dockerfile: Dockerfile
container_name: content-engine-worker
volumes:
- content-db:/app/data
- ./content.db:/app/content.db
- ./context:/app/context
- ./.env:/app/.env:ro
- ./blueprints:/app/blueprints:ro
environment:
- PYTHONUNBUFFERED=1
command: ["uv", "run", "content-engine", "worker", "--continuous", "--poll-interval", "30"]
restart: unless-stopped
healthcheck:
test: ["CMD", "pgrep", "-f", "job_worker"]
interval: 60s
timeout: 5s
retries: 3
# MCP Server - for Claude Code integration (on-demand)
mcp:
build:
context: .
dockerfile: Dockerfile
container_name: content-engine-mcp
volumes:
- content-db:/app/data
- ./content.db:/app/content.db
- ./context:/app/context
- ./.env:/app/.env:ro
environment:
- PYTHONUNBUFFERED=1
# Run MCP server - accepts JSON commands via stdin
command: ["uv", "run", "python", "mcp_server.py"]
stdin_open: true
tty: true
restart: "no"
volumes:
content-db: