-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.08 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
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: clawbolt
POSTGRES_PASSWORD: clawbolt
POSTGRES_DB: clawbolt
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U clawbolt"]
interval: 5s
timeout: 5s
retries: 5
app:
build: .
ports:
- "8000:8000"
dns:
- 8.8.8.8
- 1.1.1.1
environment:
LOG_LEVEL: debug
DATABASE_URL: postgresql://clawbolt:clawbolt@db:5432/clawbolt
env_file:
- path: .env
required: false
volumes:
- ${CLAWBOLT_DATA_DIR:-./data}:/app/data
depends_on:
db:
condition: service_healthy
command: ["sh", "-c", "uv run alembic upgrade head && uv run uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 --log-level $${LOG_LEVEL:-info}"]
tunnel:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate --url http://app:8000 --metrics 0.0.0.0:2000
restart: on-failure:5
depends_on:
- app
volumes:
pgdata: