-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (49 loc) · 1.13 KB
/
docker-compose.yaml
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
# Docker Compose file for GPDB 7X multinode cluster
version: '3.8'
# The containers
services:
# ==================================================
# The production cluster
# ==================================================
cdw:
image: gpdb7-multinode-cluster/gpdb-image
hostname: cdw
tty: true
networks:
- the-network
volumes:
- gpdb-src-volume:/gpdb-src
- gpdb-scripts-volume:/gpdb-scripts
sdw1:
hostname: sdw1
image: gpdb7-multinode-cluster/gpdb-image
tty: true
networks:
- the-network
volumes:
- gpdb-src-volume:/gpdb-src
- gpdb-scripts-volume:/gpdb-scripts
sdw2:
hostname: sdw2
image: gpdb7-multinode-cluster/gpdb-image
tty: true
networks:
- the-network
volumes:
- gpdb-src-volume:/gpdb-src
- gpdb-scripts-volume:/gpdb-scripts
# The network that bridges all the containers
networks:
the-network:
# The mounted volumes
volumes:
gpdb-src-volume:
driver_opts:
o: bind
type: none
device: ${GPDB7_SRC}
gpdb-scripts-volume:
driver_opts:
o: bind
type: none
device: ${PWD}/scripts