-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
89 lines (83 loc) · 1.79 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
82
83
84
85
86
87
88
89
version: '3'
services:
db:
build: ./postgres
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"
POSTGRES_DB: "admin"
SCALE_PCORNET: 10
networks:
vpcbr:
ipv4_address: 10.6.0.153
web:
build: ./node
container_name: web
hostname: web
ports:
- "9090:8080"
volumes:
- ./node:/usr/src/app
# - ./node/node_modules:/usr/src/app/node_modules
networks:
vpcbr:
hadoop-namenode:
build: ./hadoop
container_name: hadoop-namenode
hostname: hadoop-namenode
ports: # HOST:CONTAINER
- "2222:2222"
- "4040:4040"
- "5678:5678"
- "7077:7077"
- "8020:8020"
- "8088:8088"
- "9001:9001"
- "50070:50070"
- "50090:50090"
expose:
- "8030-8050"
environment:
- HDFS_REPLICATION_FACTOR=1
- HADOOP_NAMENODE_HOST=hadoop-namenode
volumes:
- ./hadoop/startup.sh:/root/startup.sh
- "../home/${USER}/code:/home/hadoop/code"
- ./hadoop/slaves-config:/config:ro
- ./hadoop/deployments:/deployments:ro
tty: true
networks:
vpcbr:
ipv4_address: 10.6.0.157
hadoop-datanode1:
build: ./hadoop
container_name: hadoop-datanode1
hostname: hadoop-datanode1
ports:
- "8042:8042"
- "50075:50075"
expose:
- "34000-48000"
- "50010"
- "50020"
- "50040"
environment:
- HDFS_REPLICATION_FACTOR=1
- HADOOP_NAMENODE_HOST=hadoop-namenode
volumes:
- ./hadoop/slaves-config:/config:ro
links:
- hadoop-namenode
tty: true
networks:
vpcbr:
ipv4_address: 10.6.0.158
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 10.6.0.0/24