-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (74 loc) · 2.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (74 loc) · 2.24 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
69
70
71
72
73
74
75
76
77
services:
opencut-server:
build: .
ports:
- "5679:5679"
volumes:
- opencut-data:/home/opencut/.opencut
secrets:
- opencut_remote_auth_token
environment:
- OPENCUT_BUNDLED=false
- PYTHONUNBUFFERED=1
- OPENCUT_ALLOW_REMOTE=1
- OPENCUT_REMOTE_AUTH_TOKEN_FILE=/run/secrets/opencut_remote_auth_token
# Loopback names and IP literals are trusted here. The Compose service
# names are included so the MCP sidecar can reach this backend without
# requiring a hand-edited environment file.
- OPENCUT_TRUSTED_HOSTS=${OPENCUT_TRUSTED_HOSTS:-opencut-server,opencut-mcp}
deploy:
resources:
limits:
cpus: "4.0"
memory: 4G
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5679/health"]
interval: 30s
timeout: 5s
retries: 3
logging:
driver: json-file
options:
max-size: "50m"
max-file: "3"
# MCP sidecar - use: docker compose --profile mcp up opencut-mcp
opencut-mcp:
build: .
command: ["python", "-m", "opencut.mcp_server", "--http", "--http-bind", "0.0.0.0", "--http-port", "5681"]
ports:
- "5681:5681"
volumes:
- opencut-data:/home/opencut/.opencut
secrets:
- opencut_remote_auth_token
environment:
- OPENCUT_BUNDLED=false
- PYTHONUNBUFFERED=1
- OPENCUT_ALLOW_REMOTE=1
- OPENCUT_REMOTE_AUTH_TOKEN_FILE=/run/secrets/opencut_remote_auth_token
# Loopback names and IP literals are trusted here. Keep the Compose
# service names when overriding this value for a container deployment.
- OPENCUT_TRUSTED_HOSTS=${OPENCUT_TRUSTED_HOSTS:-opencut-server,opencut-mcp}
- OPENCUT_MCP_BACKEND_URL=http://opencut-server:5679
depends_on:
opencut-server:
condition: service_healthy
deploy:
resources:
limits:
cpus: "1.0"
memory: 512M
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "20m"
max-file: "3"
profiles:
- mcp
volumes:
opencut-data:
secrets:
opencut_remote_auth_token:
file: ${OPENCUT_REMOTE_AUTH_TOKEN_FILE:?Set OPENCUT_REMOTE_AUTH_TOKEN_FILE to a token file}