-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
90 lines (81 loc) · 1.56 KB
/
compose.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# ---
# Djazz Compose file
# Please refer to the: docs/compose.md for more information
# ---
name: djazz
services:
djazz:
build:
context: ../
dockerfile: Dockerfile
args:
- DEV=1
environment:
- DEBUG=1
- DB_HOST=db
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: .
profiles:
- test
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}
ports:
- "5432:5432"
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
profiles:
- debug
- test
rabbitmq:
image: rabbitmq:3.13-management-alpine
restart: always
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: djazz
RABBITMQ_DEFAULT_PASS: djazz
profiles:
- debug
- test
redis:
image: redis:7.2-alpine
restart: always
ports:
- "6379:6379"
profiles:
- debug
- test
mail:
image: axllent/mailpit
restart: always
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
profiles:
- debug
- test
volumes:
pg-data: