-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.prod.yaml
58 lines (50 loc) · 999 Bytes
/
compose.prod.yaml
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
# ---
# Djazz Compose file
# Please refer to the: docs/compose.md for more information
# ---
name: djazz
services:
djazz:
image: ghcr.io/azataiot/djazz:latest
environment:
- DEBUG=0
expose:
- 8000
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: .
profiles:
- production
db:
image: postgres:16-alpine
restart: always
user: postgres
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB:-djazz}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
expose:
- 5432
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
profiles:
- debug
- production
redis:
image: redis:7.2-alpine
restart: always
expose:
- 6379
profiles:
- debug
volumes:
pg-data: