forked from francoisjehl/docker-vertica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (63 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
54
55
56
57
58
59
60
61
62
63
version: '2'
services:
node_1:
build:
context: .
ports:
- "5433:5433"
environment:
NODE_TYPE: "master"
CLUSTER_NODES: "node_1,node_2,node_3"
WITH_VMART: 'false'
depends_on:
- node_2
- node_3
links:
- node_2
- node_3
cap_add:
- SYS_NICE
- SYS_RESOURCE
- SYS_PTRACE
volumes:
- node_1_data:/opt/vertica
- ${VERTICA_RPM_PATH}:/tmp/vertica.rpm
node_2:
build:
context: .
environment:
NODE_TYPE: "slave"
VERTICA_HOME: "/opt/vertica"
expose:
- "22"
- "5433"
cap_add:
- SYS_NICE
- SYS_RESOURCE
- SYS_PTRACE
volumes:
- node_2_data:/opt/vertica
- ${VERTICA_RPM_PATH}:/tmp/vertica.rpm
node_3:
build:
context: .
environment:
NODE_TYPE: "slave"
VERTICA_HOME: "/opt/vertica"
expose:
- "22"
- "5433"
cap_add:
- SYS_NICE
- SYS_RESOURCE
- SYS_PTRACE
volumes:
- node_3_data:/opt/vertica
- ${VERTICA_RPM_PATH}:/tmp/vertica.rpm
volumes:
node_1_data:
driver: local
node_2_data:
driver: local
node_3_data:
driver: local