-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 787 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 787 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
version: "3.4"
services:
db:
image: library/postgres:13-alpine
container_name: zero-downtime-postgres
ports:
- 5432:5432
restart: unless-stopped
volumes:
- zero-downtime-db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=demo
- POSTGRES_PASSWORD=demo
pgadmin:
image: dpage/pgadmin4
container_name: zero-downtime-pgadmin
depends_on:
- db
ports:
- "5051:80"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin@example.com
PGADMIN_DEFAULT_PASSWORD: root
restart: always
redis:
image: library/redis:5.0-alpine
ports:
- 6379:6379
volumes:
- zero-downtime:/data
volumes:
zero-downtime-db:
driver: local
zero-downtime:
driver: local