Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c87dd0

Browse files
committed
add docker compose v3
1 parent f2e2dc0 commit 1c87dd0

File tree

1 file changed

+110
-0
lines changed

1 file changed

+110
-0
lines changed

docker-compose-v3.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
version: '3'
2+
3+
services:
4+
namenode:
5+
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
6+
networks:
7+
- hbase
8+
volumes:
9+
- namenode:/hadoop/dfs/name
10+
environment:
11+
- CLUSTER_NAME=test
12+
env_file:
13+
- ./hadoop.env
14+
deploy:
15+
mode: replicated
16+
replicas: 1
17+
restart_policy:
18+
condition: on-failure
19+
placement:
20+
constraints:
21+
- node.hostname == akswnc4.aksw.uni-leipzig.de
22+
labels:
23+
traefik.docker.network: hbase
24+
traefik.port: 50070
25+
26+
datanode:
27+
image: bde2020/hadoop-datanode:2.0.0-hadoop2.7.4-java8
28+
networks:
29+
- hbase
30+
volumes:
31+
- datanode:/hadoop/dfs/data
32+
env_file:
33+
- ./hadoop.env
34+
environment:
35+
SERVICE_PRECONDITION: "namenode:50070"
36+
deploy:
37+
mode: global
38+
restart_policy:
39+
condition: on-failure
40+
labels:
41+
traefik.docker.network: hbase
42+
traefik.port: 50075
43+
44+
resourcemanager:
45+
image: bde2020/hadoop-resourcemanager:2.0.0-hadoop2.7.4-java8
46+
networks:
47+
- hbase
48+
environment:
49+
SERVICE_PRECONDITION: "namenode:50070 datanode:50075"
50+
env_file:
51+
- ./hadoop.env
52+
deploy:
53+
mode: replicated
54+
replicas: 1
55+
restart_policy:
56+
condition: on-failure
57+
placement:
58+
constraints:
59+
- node.hostname == akswnc4.aksw.uni-leipzig.de
60+
labels:
61+
traefik.docker.network: hbase
62+
traefik.port: 8088
63+
healthcheck:
64+
disable: true
65+
66+
nodemanager:
67+
image: bde2020/hadoop-nodemanager:2.0.0-hadoop2.7.4-java8
68+
networks:
69+
- hbase
70+
environment:
71+
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 resourcemanager:8088"
72+
env_file:
73+
- ./hadoop.env
74+
deploy:
75+
mode: global
76+
restart_policy:
77+
condition: on-failure
78+
labels:
79+
traefik.docker.network: hbase
80+
traefik.port: 8042
81+
82+
historyserver:
83+
image: bde2020/hadoop-historyserver:2.0.0-hadoop2.7.4-java8
84+
networks:
85+
- hbase
86+
volumes:
87+
- hadoop_historyserver:/hadoop/yarn/timeline
88+
environment:
89+
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 resourcemanager:8088"
90+
env_file:
91+
- ./hadoop.env
92+
deploy:
93+
mode: replicated
94+
replicas: 1
95+
placement:
96+
constraints:
97+
- node.hostname == akswnc4.aksw.uni-leipzig.de
98+
labels:
99+
traefik.docker.network: hbase
100+
traefik.port: 8188
101+
102+
volumes:
103+
datanode:
104+
namenode:
105+
hadoop_historyserver:
106+
107+
networks:
108+
hbase:
109+
external:
110+
name: hbase

0 commit comments

Comments
 (0)