-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 860 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
38
services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: clawscale
POSTGRES_PASSWORD: clawscale
POSTGRES_DB: clawscale
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U clawscale"]
interval: 5s
timeout: 3s
retries: 5
app:
build: .
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
- "4040:4040"
environment:
DATABASE_URL: postgresql://clawscale:clawscale@db:5432/clawscale
JWT_SECRET: ${JWT_SECRET:-change-me-to-a-long-random-string-in-production}
HOST: 0.0.0.0
PORT: 4040
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
env_file:
- path: .env
required: false
volumes:
pgdata: