-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
65 lines (62 loc) · 1.77 KB
/
compose.yml
File metadata and controls
65 lines (62 loc) · 1.77 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
55
56
57
58
59
60
61
62
63
64
65
services:
authronom-backend-postgres:
container_name: authronom-backend-postgres
image: postgres:17.3
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "authronom-backend"
ports:
- '5432:5432'
volumes:
- type: volume
source: postgresql-data
target: /var/lib/postgresql/data
- type: bind
source: ./postgresql_init_scripts/init.sql
target: /docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
authronom-backend-redis:
container_name: authronom-backend-redis
image: redis:7.4.2
command: redis-server --save 20 1 --loglevel warning --requirepass redis
ports:
- '6379:6379'
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
# Inspired by https://mailpit.axllent.org/docs/install/docker/#docker-compose-example
authronom-backend-mailpit:
container_name: authronom-backend-mailpit
image: axllent/mailpit:v1.24
volumes:
- type: volume
source: mailpit-data
target: /data
ports:
- '8025:8025'
- '1025:1025'
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8025"]
interval: 10s
timeout: 5s
retries: 3
start_period: 20s
volumes:
postgresql-data:
name: authronom-backend-postgresql17-data
mailpit-data:
name: authronom-backend-mailpit-data