forked from iloveitaly/python-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.4 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
# NOTE: for development use only, do not run this compose in production!
# ports are not exposed, instead dynamic orb domains are used
services:
# port 5432
postgres:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${CI:+5432}:5432
volumes:
- app_postgres_data:/var/lib/postgresql/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 2s
timeout: 5s
retries: 3
# port 6379
redis:
# NOTE you'll probably need to drop this value for your production environment which will lag edge releases
image: redis:8
restart: unless-stopped
ports:
- ${CI:+6379}:6379
healthcheck:
test: ["CMD-SHELL", "redis-cli ping"]
interval: 2s
timeout: 5s
retries: 3
# SMTP sinkhole for easily viewing email in development
# web ui: 8025
# smtp: 1025
mailpit:
image: axllent/mailpit
restart: unless-stopped
ports:
- ${CI:+1025}:1025
volumes:
- mailpit_data:/data
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
mailpit_data:
# NOTE redis data is not persisted, assumed to be ephemeral
app_postgres_data: