-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 827 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 827 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
34
35
36
37
38
39
40
41
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: alembic
POSTGRES_USER: alembic
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-alembic_dev}
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 512M
cpus: "1.0"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U alembic"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6380:6379"
deploy:
resources:
limits:
memory: 128M
cpus: "0.5"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pgdata: