This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.rancher.yml
107 lines (102 loc) · 2.47 KB
/
docker-compose.rancher.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
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
version: '2'
services:
hdfs-name:
image: biggis/hdfs:2.7.1
ports:
- "50070:50070"
- "8020:8020"
command: start.sh name
environment:
USER_ID: 1000
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name.hdfs
TIMEZONE: Europe/Berlin
labels:
io.rancher.container.pull_image: 'always'
io.rancher.container.hostname_override: 'container_name'
io.rancher.scheduler.affinity:host_label: 'hdfs-name=true'
volumes:
- hdfs-namenode:/data/hdfs
- hadoop-conf:/etc/hadoop/conf
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
hdfs-sname:
image: biggis/hdfs:2.7.1
depends_on:
- hdfs-name
ports:
- "50090:50090"
command: start.sh sname
environment:
USER_ID: 1000
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name.hdfs
TIMEZONE: Europe/Berlin
labels:
io.rancher.container.pull_image: 'always'
io.rancher.container.hostname_override: 'container_name'
volumes:
- hdfs-snamenode:/data/hdfs
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
hdfs-data:
image: biggis/hdfs:2.7.1
depends_on:
- hdfs-name
ports:
- "50010:50010"
- "50075:50075"
command: start.sh data
environment:
USER_ID: 1000
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name.hdfs
TIMEZONE: Europe/Berlin
labels:
io.rancher.container.pull_image: 'always'
io.rancher.container.hostname_override: 'container_name'
io.rancher.scheduler.global: 'true'
volumes:
- hdfs-datanode:/data/hdfs
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
api:
image: biggis/hdfs-api
depends_on:
- hdfs-name
- hdfs-data
ports:
- "3000:3000"
command: npm start
environment:
HADOOP_MASTER_ADDRESS: hdfs-name.hdfs
USERNAME: hdfs
PASSWORD: password
labels:
io.rancher.container.pull_image: 'always'
io.rancher.container.hostname_override: 'container_name'
io.rancher.scheduler.affinity:host_label: 'hdfs-api=true'
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
volumes:
hdfs-namenode:
driver: rancher-nfs
external: true
hdfs-snamenode:
driver: rancher-nfs
external: true
hadoop-conf:
driver: rancher-nfs
external: true