-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-docker.yaml
More file actions
97 lines (94 loc) · 2.82 KB
/
Copy pathdocker-compose-docker.yaml
File metadata and controls
97 lines (94 loc) · 2.82 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
services:
postgres:
image: postgres:16.13-alpine3.23
container_name: teamclaw-postgres
restart: unless-stopped
environment:
POSTGRES_DB: teamclaw
POSTGRES_USER: teamclaw
POSTGRES_PASSWORD: teamclaw_dev_password
TZ: Asia/Shanghai
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U teamclaw -d teamclaw"]
interval: 10s
timeout: 5s
retries: 10
docker-0.docker:
image: docker:27.5-dind
container_name: teamclaw-docker-0
privileged: true
restart: unless-stopped
environment:
DOCKER_TLS_CERTDIR: ""
TZ: Asia/Shanghai
command:
- --host=tcp://0.0.0.0:2376
- --tlsverify
- --tlscacert=/certs/ca.crt
- --tlscert=/certs/tls.crt
- --tlskey=/certs/tls.key
volumes:
- ./data/teamclaw/certs:/certs:ro
- ./data/teamclaw/skills-builtin:/skills-builtin:ro
- ./data/teamclaw/workspaces:/workspaces
- ./data/teamclaw/skills/user:/skills/user
- ./data/sandbox:/root/sandbox
healthcheck:
test: ["CMD-SHELL", "docker info >/dev/null 2>&1"]
interval: 10s
timeout: 5s
retries: 20
docker-1.docker:
image: docker:27.5-dind
container_name: teamclaw-docker-1
privileged: true
restart: unless-stopped
environment:
DOCKER_TLS_CERTDIR: ""
TZ: Asia/Shanghai
command:
- --host=tcp://0.0.0.0:2376
- --tlsverify
- --tlscacert=/certs/ca.crt
- --tlscert=/certs/tls.crt
- --tlskey=/certs/tls.key
volumes:
- ./data/teamclaw/certs:/certs:ro
- ./data/teamclaw/skills-builtin:/skills-builtin:ro
- ./data/teamclaw/workspaces:/workspaces
- ./data/teamclaw/skills/user:/skills/user
- ./data/sandbox:/root/sandbox
healthcheck:
test: ["CMD-SHELL", "docker info >/dev/null 2>&1"]
interval: 10s
timeout: 5s
retries: 20
teamclaw:
image: cookeem/teamclaw:v0.6.2
container_name: teamclaw
restart: unless-stopped
environment:
TEAMCLAW_CONFIG_PATH: /app/config-docker.yaml
TEAMCLAW_API_BASE: ${TEAMCLAW_API_BASE:-http://127.0.0.1:8000}
TZ: Asia/Shanghai
ports:
- "8000:8000"
- "8080:8080"
volumes:
- ./data/teamclaw/config-docker.yaml:/app/config-docker.yaml:ro
- ./data/teamclaw/prompts:/app/prompts:ro
- ./data/teamclaw/certs:/app/certs:ro
- ./data/teamclaw/skills-builtin:/app/skills-builtin:ro
- ./data/teamclaw/workspaces:/app/workspaces
- ./data/teamclaw/skills/user:/app/skills/user
- ./data/teamclaw/avatars:/app/avatars
- ./data/teamclaw/logs:/app/logs
depends_on:
postgres:
condition: service_healthy
docker-0.docker:
condition: service_healthy
docker-1.docker:
condition: service_healthy