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
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 1.55 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '2.1'
services:
hdfs-name:
image: biggis/hdfs:2.7.1
container_name: hdfs-name
ports:
- "50070:50070"
- "8020:8020"
command: start.sh name
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name
TIMEZONE: Europe/Berlin
networks:
- hdfs
# volumes:
# - hdfs-data:/data/hdfs
hdfs-sname:
image: biggis/hdfs:2.7.1
container_name: hdfs-sname
depends_on:
- hdfs-name
ports:
- "50090:50090"
command: start.sh sname
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name
TIMEZONE: Europe/Berlin
networks:
- hdfs
# volumes:
# - hdfs-data:/data/hdfs
hdfs-data:
image: biggis/hdfs:2.7.1
depends_on:
- hdfs-name
expose:
- "50010"
- "50075"
command: start.sh data
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name
TIMEZONE: Europe/Berlin
networks:
- hdfs
# volumes:
# - hdfs-data:/data/hdfs
api:
build:
context: ./
dockerfile: ./Dockerfile.api
image: hdfs-api:0.0.2
container_name: hdfs-api
depends_on:
- hdfs-name
- hdfs-data
ports:
- "3000:3000"
command: npm start
environment:
HADOOP_MASTER_ADDRESS: hdfs-name
USERNAME: hdfs
PASSWORD: password
networks:
- hdfs
# volumes:
# hdfs-data:
networks:
hdfs:
driver: bridge