-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (76 loc) · 1.94 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (76 loc) · 1.94 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
78
79
services:
dashboard:
build:
context: .
image: contribai:local
command:
- --config
- /home/contribai/config.yaml
- web-server
- --host
- 0.0.0.0
- --port
- "8787"
ports:
- "127.0.0.1:8787:8787"
volumes:
- contribai-data:/home/contribai/.contribai
- ./config.yaml:/home/contribai/config.yaml:ro
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
# The server itself fails closed when this is empty on a non-loopback bind.
CONTRIBAI_WEB_API_KEY: ${CONTRIBAI_WEB_API_KEY:-}
GITHUB_WEBHOOK_SECRET: ${GITHUB_WEBHOOK_SECRET:-}
read_only: true
tmpfs:
- /tmp:size=128m,mode=1777
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "http://127.0.0.1:8787/api/health"]
interval: 30s
timeout: 5s
retries: 3
scheduler:
build:
context: .
image: contribai:local
command: ["--config", "/home/contribai/config.yaml", "schedule"]
profiles: ["scheduler"]
volumes:
- contribai-data:/home/contribai/.contribai
- ./config.yaml:/home/contribai/config.yaml:ro
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
read_only: true
tmpfs:
- /tmp:size=128m,mode=1777
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
runner:
build:
context: .
image: contribai:local
profiles: ["cli"]
volumes:
- contribai-data:/home/contribai/.contribai
- ./config.yaml:/home/contribai/config.yaml:ro
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
read_only: true
tmpfs:
- /tmp:size=128m,mode=1777
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
volumes:
contribai-data: