Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
80 lines (73 loc) · 1.94 KB
/
Copy pathcompose.yml
File metadata and controls
80 lines (73 loc) · 1.94 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
postgres:
env_file:
- .env
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?database password required}
POSTGRES_USER: ${POSTGRES_USER:-fastid}
POSTGRES_DB: ${POSTGRES_DB:-fastid}
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""
]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
redis:
env_file:
- .env
image: redis:7-alpine
command:
- sh
- -c
- exec redis-server --requirepass "$$REDIS_PASSWORD"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
mailpit:
env_file:
- .env
image: axllent/mailpit:v1.30.1
healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8025/readyz" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
fastid-app:
env_file:
- .env
image: everysoftware/fastid:latest
ports:
- "8012:8000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
mailpit:
condition: service_healthy
environment:
FASTID_DB_URL: ${FASTID_DB_URL:-postgresql+asyncpg://${POSTGRES_USER:-fastid}:${POSTGRES_PASSWORD:?database password required}@postgres:5432/${POSTGRES_DB:-fastid}}
FASTID_REDIS_URL: ${FASTID_REDIS_URL:-redis://:${REDIS_PASSWORD:?redis password required}@redis:6379/0}
FASTID_SMTP_ENABLED: true
FASTID_SMTP_HOST: mailpit
FASTID_SMTP_PORT: 1025
volumes:
- "./certs:/opt/fastid/certs"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/readiness" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
pg_data: