-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
33 lines (31 loc) · 791 Bytes
/
compose.yaml
File metadata and controls
33 lines (31 loc) · 791 Bytes
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
services:
db:
image: postgres:18-alpine
restart: unless-stopped
ports:
- 5432:5432
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pg_data:/var/lib/postgresql
healthcheck:
interval: 30s
timeout: 10s
retries: 3
test: ['CMD', 'pg_isready', '-U', '${POSTGRES_USER:-postgres}']
redis:
image: redis:8-alpine
restart: unless-stopped
ports:
- 6379:6379
# No persistence — sessions are ephemeral; users re-authenticate on restart
command: redis-server --save "" --appendonly no
healthcheck:
interval: 10s
timeout: 5s
retries: 3
test: ['CMD', 'redis-cli', 'ping']
volumes:
pg_data: