-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.27 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
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: convox
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-convox}
POSTGRES_DB: convox
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U convox
interval: 5s
timeout: 5s
retries: 5
ports:
- "5432:5432"
redis:
image: redis:7-alpine
healthcheck:
test: redis-cli ping
interval: 5s
timeout: 5s
retries: 5
ports:
- "6379:6379"
app:
build: .
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
DATABASE_URL: postgres://convox:${POSTGRES_PASSWORD:-convox}@postgres:5432/convox?sslmode=disable
CONVOX_DATABASE_URL: postgres://convox:${POSTGRES_PASSWORD:-convox}@postgres:5432/convox?sslmode=disable
CONVOX_REDIS_URL: redis://redis:6379
CONVOX_JWT_SECRET: ${CONVOX_JWT_SECRET:-0000000000000000000000000000000000000000000000000000000000000000}
CONVOX_ENCRYPT_KEY: ${CONVOX_ENCRYPT_KEY:-0000000000000000000000000000000000000000000000000000000000000000}
CONVOX_ENV: production
CONVOX_PORT: "8000"
ports:
- "8000:8000"
restart: unless-stopped
volumes:
pgdata: