-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 909 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 909 Bytes
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
services:
api:
build:
context: .
dockerfile: docker/api.Dockerfile
environment:
COWORK_SERVER_HOST: "0.0.0.0"
COWORK_SERVER_PORT: "26866"
DATABASE_URI: "sqlite:////home/cowork/.cowork/cowork.db"
# ANTON_ANTHROPIC_API_KEY: "sk-ant-..."
volumes:
- cowork-data:/home/cowork/.cowork
ports:
- "26866:26866"
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c",
"import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:26866/health',timeout=3).status==200 else 1)"]
interval: 30s
timeout: 5s
start_period: 20s
retries: 3
web:
build:
context: .
dockerfile: docker/web.Dockerfile
ports:
- "3000:80"
depends_on:
api:
condition: service_healthy
restart: unless-stopped
volumes:
cowork-data:
driver: local