-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.3 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
services:
app:
image: chorusaidlc/chorus-app:latest
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- "8637:8637"
environment:
- DATABASE_URL=postgresql://chorus:chorus@db:5432/chorus
- REDIS_URL=redis://default:chorus-redis@redis:6379
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-chorus-docker-secret-change-in-production}
- COOKIE_SECURE=${COOKIE_SECURE:-false}
- DEFAULT_USER=${DEFAULT_USER:-}
- DEFAULT_PASSWORD=${DEFAULT_PASSWORD:-}
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: redis-server --requirepass chorus-redis
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "chorus-redis", "ping"]
interval: 5s
timeout: 3s
retries: 5
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: chorus
POSTGRES_PASSWORD: chorus
POSTGRES_DB: chorus
ports:
- "5433:5432"
volumes:
- chorus-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chorus -d chorus"]
interval: 5s
timeout: 5s
retries: 5
volumes:
chorus-data:
redis-data: