-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
82 lines (76 loc) · 2.2 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
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
version: '3'
networks:
overlay:
external:
name: pg_cluster_network
volumes:
pg_access_node_data:
driver: local
pg_data_node_1_data:
driver: local
pg_data_node_2_data:
driver: local
services:
pg_access_node:
image: timescale/timescaledb-ha:pg15.4-ts2.12.1-all
container_name: pg_access_node
restart: unless-stopped
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
networks:
- overlay
volumes:
- pg_access_node_data:/home/postgres/pgdata/data
- ./trust-all.sh:/docker-entrypoint-initdb.d/777_trust.sh
- ./unsafe-boost.sh:/docker-entrypoint-initdb.d/888_boost.sh
- ./init-access-node.sh:/docker-entrypoint-initdb.d/999_cluster.sh
- ./data:/tmp/data
pg_data_node_1:
image: timescale/timescaledb-ha:pg15.4-ts2.12.1-all
container_name: pg_data_node_1
restart: unless-stopped
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5433:5432'
networks:
- overlay
volumes:
- pg_data_node_1_data:/home/postgres/pgdata/data
- ./trust-all.sh:/docker-entrypoint-initdb.d/777_trust.sh
- ./unsafe-boost.sh:/docker-entrypoint-initdb.d/888_boost.sh
- ./init-data-node.sh:/docker-entrypoint-initdb.d/999_cluster.sh
pg_data_node_2:
image: timescale/timescaledb-ha:pg15.4-ts2.12.1-all
container_name: pg_data_node_2
restart: unless-stopped
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5434:5432'
networks:
- overlay
volumes:
- pg_data_node_2_data:/home/postgres/pgdata/data
- ./trust-all.sh:/docker-entrypoint-initdb.d/777_trust.sh
- ./unsafe-boost.sh:/docker-entrypoint-initdb.d/888_boost.sh
- ./init-data-node.sh:/docker-entrypoint-initdb.d/999_cluster.sh
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
restart: unless-stopped
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- '15432:80'
networks:
- overlay