-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
92 lines (84 loc) · 2.14 KB
/
docker-compose.yaml
File metadata and controls
92 lines (84 loc) · 2.14 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
81
82
83
84
85
86
87
88
89
90
91
92
version: '3'
networks:
testNetwork:
driver: bridge
services:
postgres:
image: bitnami/postgresql:latest
environment:
- POSTGRESQL_PASSWORD=password
- POSTGRESQL_USER=admin
- POSTGRESQL_DATABASE=WorkoutsDB
volumes:
- ./postgres_data:/bitnami/postgresql
pg-0:
image: bitnami/postgresql-repmgr:11
ports:
- 5432
volumes:
- pg_0_data:/bitnami/postgresql
environment:
- POSTGRESQL_POSTGRES_PASSWORD=password
- POSTGRESQL_USERNAME=admin
- POSTGRESQL_PASSWORD=password
- POSTGRESQL_DATABASE=WorkoutsDB
- REPMGR_PASSWORD=repmgr
- REPMGR_PRIMARY_HOST=pg-0
- REPMGR_PARTNER_NODES=pg-0,pg-1
- REPMGR_NODE_NAME=pg-0
- REPMGR_NODE_NETWORK_NAME=pg-0
pg-1:
image: bitnami/postgresql-repmgr:11
ports:
- 5432
volumes:
- pg_1_data:/bitnami/postgresql
environment:
- POSTGRESQL_POSTGRES_PASSWORD=password
- POSTGRESQL_USERNAME=admin
- POSTGRESQL_PASSWORD=password
- POSTGRESQL_DATABASE=WorkoutsDB
- REPMGR_PASSWORD=repmgr
- REPMGR_PRIMARY_HOST=pg-0
- REPMGR_PARTNER_NODES=pg-0,pg-1
- REPMGR_NODE_NAME=pg-1
- REPMGR_NODE_NETWORK_NAME=pg-1
pgpool:
image: bitnami/pgpool:latest
ports:
- '5432:5432'
environment:
- PGPOOL_BACKEND_NODES=0:pg-0:5432,1:pg-1:5432
- PGPOOL_SR_CHECK_USER=admin
- PGPOOL_SR_CHECK_PASSWORD=password
- PGPOOL_ENABLE_LDAP=no
- PGPOOL_POSTGRES_USERNAME=admin
- PGPOOL_POSTGRES_PASSWORD=password
- PGPOOL_ADMIN_USERNAME=admin
- PGPOOL_ADMIN_PASSWORD=adminpassword
healthcheck:
test: [ "CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh" ]
interval: 10s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4
depends_on:
- pg-1
restart: always
ports:
- '5555:80'
environment:
- PGADMIN_DEFAULT_EMAIL=user@domain.com
- PGADMIN_DEFAULT_PASSWORD=password
app:
image: nicknav98/gymplanner:latest
ports:
- '5050:5050'
networks:
- testNetwork
volumes:
pg_0_data:
driver: local
pg_1_data:
driver: local