-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (47 loc) · 1.17 KB
/
docker-compose.yml
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
version: '3.9'
services:
db:
image: postgres:13.6
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_DB: "${POSTGRES_DB}"
restart: on-failure
healthcheck:
test: "psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c 'select 1;'"
interval: 1s
retries: 20
volumes:
- database_decent_debates_dev:/var/lib/postgresql/data
- ./db:/docker-entrypoint-initdb.d/
networks:
- decent_debates_dev
ports:
- "5432:5432"
redis:
image: redis:7.0.5
networks:
- decent_debates_dev
healthcheck:
test: "redis-cli ping"
interval: 1s
retries: 20
ports:
- "6379:6379"
# Might need this to quickly generate a UML.
# pgadmin:
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_EMAIL: foo@bar.com
# PGADMIN_DEFAULT_PASSWORD: "${POSTGRES_PASSWORD}"
# ports:
# - "3003:80"
# volumes:
# - database_decent_debates_pgadmin:/var/lib/pgadmin
# networks:
# - decent_debates_dev
volumes:
database_decent_debates_dev:
# database_decent_debates_pgadmin:
networks:
decent_debates_dev: