-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
226 lines (214 loc) · 5.42 KB
/
docker-compose.yml
File metadata and controls
226 lines (214 loc) · 5.42 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
x-app-defaults: &x_app_default
build:
context: ./
dockerfile: ./docker/local/app/Dockerfile
tty: true
stdin_open: true
restart: unless-stopped
env_file:
- docker/local/app/config.env
- docker/local/app/config.secrets.env
volumes:
- ./data/static:/home/app/data/static
- ./data/media:/home/app/data/media
- .:/home/app/src
depends_on:
db:
condition: service_healthy
restart: true
redis:
condition: service_healthy
restart: true
services:
db:
image: postgres:17.6
container_name: daiv-db
restart: unless-stopped
environment:
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbpass
POSTGRES_DB: db
volumes:
- ./data/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dbuser -d db"]
interval: 10s
timeout: 10s
start_period: 30s
retries: 5
ports:
- "5432:5432"
redis:
image: redis:8.6-alpine
command: redis-server --save "" --appendonly yes --dir /data --maxmemory 512mb --maxmemory-policy volatile-ttl
restart: unless-stopped
container_name: daiv-redis
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
volumes:
- ./data/redis:/data
ports:
- "6379:6379"
mailpit:
image: axllent/mailpit:latest
container_name: daiv-mailpit
restart: unless-stopped
ports:
- "8025:8025"
- "1025:1025"
app:
<<: *x_app_default
container_name: daiv-app
command: sh /home/app/docker/start-app
healthcheck:
test: ["CMD", "curl", "-f", "-k", "https://localhost:8000/-/alive/"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "8000:8000"
worker:
<<: *x_app_default
command: sh /home/app/docker/start-worker
healthcheck:
test: ["CMD-SHELL", "grep -q 'db_worker' /proc/*/cmdline 2>/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
ports: []
deploy:
mode: replicated
replicas: 2
scheduler:
<<: *x_app_default
container_name: daiv-scheduler
command: sh /home/app/docker/start-crontask
healthcheck:
test: ["CMD-SHELL", "grep -q 'crontask' /proc/*/cmdline 2>/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
ports: []
gitlab:
image: gitlab/gitlab-ce:latest
container_name: daiv-gitlab
profiles:
- gitlab
- full
restart: on-failure
logging:
driver: "none"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://127.0.0.1:8929'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
gitlab_rails['log_level'] = 'warn'
sidekiq['log_level'] = 'warn'
gitaly['logging_level'] = 'warn'
nginx['error_log_level'] = 'warn'
puma['log_level'] = 'warn'
ports:
- "8929:8929"
- "2224:22"
volumes:
- "./data/gitlab/config:/etc/gitlab"
- "./data/gitlab/logs:/var/log/gitlab"
- "./data/gitlab/data:/var/opt/gitlab"
gitlab_runner:
image: gitlab/gitlab-runner:latest
container_name: daiv-gitlab-runner
profiles:
- gitlab
- full
restart: unless-stopped
volumes:
- ./docker/local/gitlab-runner/config.toml:/etc/gitlab-runner/config.toml
- /var/run/docker.sock:/var/run/docker.sock
extra_hosts:
- "postgres:127.0.0.1"
depends_on:
gitlab:
condition: service_healthy
sandbox:
image: ghcr.io/srtab/daiv-sandbox:latest
profiles:
- sandbox
- full
stdin_open: true
restart: unless-stopped
container_name: daiv-sandbox
group_add:
- "${DOCKER_GID:-999}"
env_file:
- ./docker/local/sandbox/config.env
ports:
- "8888:8000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
mcp_sentry:
image: supercorp/supergateway:latest
profiles:
- mcp
- full
restart: unless-stopped
container_name: daiv-mcp-sentry
command:
- --stdio
- "npx @sentry/mcp-server@latest"
- --outputTransport
- streamableHttp
- --healthEndpoint
- "/healthz"
env_file:
- docker/local/app/config.secrets.env
environment:
MCP_DISABLE_SKILLS: seer,docs,project-management
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
mcp_context7:
image: supercorp/supergateway:latest
profiles:
- mcp
- full
restart: unless-stopped
container_name: daiv-mcp-context7
command:
- --stdio
- "npx @upstash/context7-mcp@latest"
- --outputTransport
- streamableHttp
- --healthEndpoint
- "/healthz"
env_file:
- docker/local/app/config.secrets.env
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
smee:
build:
context: ./
dockerfile: ./docker/local/smee/Dockerfile
profiles:
- github
container_name: daiv-smee
restart: unless-stopped
command: smee --url https://smee.io/GiX7tLSvzqK35HSy --target https://app:8000/api/codebase/callbacks/github/
environment:
NODE_TLS_REJECT_UNAUTHORIZED: 0
depends_on:
app:
condition: service_healthy
restart: true