forked from gchq/gaffer-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
159 lines (149 loc) · 4.69 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Copyright 2020 Crown Copyright
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: "3.7"
services:
zookeeper:
image: zookeeper:3.5.6
container_name: zookeeper
hostname: zookeeper
environment:
- ZOO_SERVERS=server.1=zookeeper:2888:3888;2181
- ZOO_4LW_COMMANDS_WHITELIST=*
volumes:
- /data
- /datalog
hdfs-namenode:
image: gchq/hdfs:${HADOOP_VERSION}
build:
context: ../hdfs/
args:
HADOOP_VERSION: ${HADOOP_VERSION}
command: namenode
container_name: hdfs-namenode
hostname: hdfs-namenode
environment:
- HADOOP_CONF_DIR=${HADOOP_CONF_DIR}
ports:
- 9870:9870
volumes:
- ../hdfs/conf:${HADOOP_CONF_DIR}:ro
- /var/log/hadoop
- /data1
- /data2
hdfs-datanode:
depends_on:
- hdfs-namenode
image: gchq/hdfs:${HADOOP_VERSION}
command: datanode
container_name: hdfs-datanode
hostname: hdfs-datanode
environment:
- HADOOP_CONF_DIR=${HADOOP_CONF_DIR}
volumes:
- ../hdfs/conf:${HADOOP_CONF_DIR}:ro
- /var/log/hadoop
- /data1
- /data2
accumulo-master:
depends_on:
- hdfs-namenode
- hdfs-datanode
- zookeeper
image: gchq/gaffer:${GAFFER_VERSION}
build:
context: .
args:
GAFFER_VERSION: ${GAFFER_VERSION}
BASE_IMAGE_NAME: gchq/accumulo
BASE_IMAGE_TAG: ${ACCUMULO_VERSION}
command: master
restart: on-failure
container_name: accumulo-master
hostname: accumulo-master
environment:
- ACCUMULO_CONF_DIR=${ACCUMULO_CONF_DIR}
# There doesn't seem to be an easy way (with docker-compose) to init our
# HDFS instance with the right permissions so that Accumulo can create the
# file structure it needs. Using the following workaround to allow
# accumulo to "auth" with HDFS as the super user so that it can:
- HADOOP_USER_NAME=hadoop
volumes:
- ../accumulo/conf:${ACCUMULO_CONF_DIR}:ro
- /var/log/accumulo
accumulo-tserver:
depends_on:
- accumulo-master
image: gchq/gaffer:${GAFFER_VERSION}
command: tserver
restart: on-failure
container_name: accumulo-tserver
hostname: accumulo-tserver
environment:
- ACCUMULO_CONF_DIR=${ACCUMULO_CONF_DIR}
# There doesn't seem to be an easy way (with docker-compose) to init our
# HDFS instance with the right permissions so that Accumulo can create the
# file structure it needs. Using the following workaround to allow
# accumulo to "auth" with HDFS as the super user so that it can:
- HADOOP_USER_NAME=hadoop
volumes:
- ../accumulo/conf:${ACCUMULO_CONF_DIR}:ro
- /var/log/accumulo
accumulo-monitor:
depends_on:
- accumulo-master
image: gchq/gaffer:${GAFFER_VERSION}
command: monitor
restart: on-failure
container_name: accumulo-monitor
hostname: accumulo-monitor
environment:
- ACCUMULO_CONF_DIR=${ACCUMULO_CONF_DIR}
# There doesn't seem to be an easy way (with docker-compose) to init our
# HDFS instance with the right permissions so that Accumulo can create the
# file structure it needs. Using the following workaround to allow
# accumulo to "auth" with HDFS as the super user so that it can:
- HADOOP_USER_NAME=hadoop
ports:
- 9995:9995
volumes:
- ../accumulo/conf:${ACCUMULO_CONF_DIR}:ro
- /var/log/accumulo
accumulo-gc:
depends_on:
- accumulo-master
image: gchq/gaffer:${GAFFER_VERSION}
command: gc
restart: on-failure
container_name: accumulo-gc
hostname: accumulo-gc
environment:
- ACCUMULO_CONF_DIR=${ACCUMULO_CONF_DIR}
# There doesn't seem to be an easy way (with docker-compose) to init our
# HDFS instance with the right permissions so that Accumulo can create the
# file structure it needs. Using the following workaround to allow
# accumulo to "auth" with HDFS as the super user so that it can:
- HADOOP_USER_NAME=hadoop
volumes:
- ../accumulo/conf:${ACCUMULO_CONF_DIR}:ro
- /var/log/accumulo
gaffer-rest:
image: gchq/gaffer-rest:${GAFFER_VERSION}
build:
context: ../gaffer-rest/
args:
GAFFER_VERSION: ${GAFFER_VERSION}
ports:
- 8080:8080
volumes:
- ./conf/store.properties:/gaffer/store/store.properties:ro