-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
78 lines (74 loc) · 1.85 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
services:
client:
build:
context: client
dockerfile: Dockerfile
target: development
ports:
- "8080:8080"
volumes:
- ./client:/app
- /app/node_modules
environment:
- PORT=8080
- VITE_API_BASE_URL=http://localhost:5000/api/v1
- VITE_CLERK_PUBLISHABLE_KEY=${VITE_CLERK_PUBLISHABLE_KEY}
api:
build:
context: server
dockerfile: Dockerfile
target: development
ports:
- "5000:5000"
volumes:
- ./server:/app
- /app/tmp
- /app/bin
env_file:
- ./server/.env
environment:
- API_PORT=5000
- DATASTORES__DATABASE_URL=postgres://postgres:postgres@postgres:5432/bootstrap?sslmode=disable
- QUEUE__ENABLED=true
- QUEUE__WORKER_COUNT=5
- QUEUE__JOB_TIMEOUT=30s
- SCHEDULER__ENABLED=false
- SCHEDULER__HEARTBEAT_EVERY=30m
- SCHEDULER__TASK_TIMEOUT=10s
- LIFECYCLE__WORKER_SHUTDOWN_TIMEOUT=10s
- LIFECYCLE__API_SHUTDOWN_TIMEOUT=5s
depends_on:
postgres:
condition: service_healthy
dns:
- 8.8.8.8
postgres:
image: postgres:18-alpine
ports:
- "5432:5432"
environment:
- PGUSER=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=bootstrap
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
riverui:
image: ghcr.io/riverqueue/riverui:latest
ports:
- "8081:8080"
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/bootstrap?sslmode=disable
depends_on:
postgres:
condition: service_healthy
command: sh -c "exec /bin/riverui -prefix=$$PATH_PREFIX > /dev/null 2>&1"
logging:
driver: "none"
volumes:
postgres_data: