-
-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (65 loc) · 1.74 KB
/
docker-compose.yaml
File metadata and controls
69 lines (65 loc) · 1.74 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
x-healthcheck-node: &healthcheck-node
test: ['CMD', 'node', '-e', "fetch('http://localhost:3000/api/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))"]
interval: 15s
timeout: 10s
start_period: 60s
retries: 5
services:
studio:
image: kubblabs/kubb-studio:latest
container_name: kubb-studio
platform: linux/amd64
ports:
- '3002:3000'
env_file:
- .env
environment:
PORT: 3000
DATABASE_URL: postgresql://studio:studio_dev_password@postgres:5432/studio
KUBB_STUDIO_URL: http://kubb-studio:3000
BETTER_AUTH_URL: http://localhost:3002
KUBB_STUDIO_SECRET: KUBB_SERVER_TEST
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
healthcheck: *healthcheck-node
agent:
image: kubblabs/kubb-agent:latest
container_name: kubb-agent
ports:
- '3001:3000'
env_file:
- .env
environment:
PORT: 3000
KUBB_AGENT_ALLOW_WRITE: 'false'
KUBB_AGENT_ALLOW_ALL: 'false'
KUBB_AGENT_RETRY_TIMEOUT: '30000'
KUBB_STUDIO_URL: http://kubb-studio:3000
volumes:
- ./data:/kubb/agent/data
depends_on:
studio:
condition: service_started
restart: unless-stopped
healthcheck: *healthcheck-node
postgres:
image: postgres:17-alpine
container_name: studio-postgres
environment:
POSTGRES_DB: studio
POSTGRES_USER: studio
POSTGRES_PASSWORD: studio_dev_password
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U studio']
interval: 10s
timeout: 5s
start_period: 20s
retries: 5
volumes:
postgres_data: