-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
50 lines (46 loc) · 1.17 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
version: '2.1'
services:
sparkmaster:
image: elastest/ebs-spark:latest
container_name: sparkmaster
ports:
- "8080:8080"
- "7077:7077"
# volumes:
# - ./spark/alluxio_conf:/opt/alluxio/conf
# - ./spark/spark_conf:/opt/spark/conf
# - ./spark/hadoop_conf:/usr/local/hadoop/etc/hadoop
command: ["/usr/bin/supervisord", "--configuration=/opt/conf/master.conf"]
hostname: sparkmaster
networks:
- elastest
sparkworker:
image: elastest/ebs-spark:latest
depends_on:
- sparkmaster
ports:
- "8081"
# volumes:
# - ./spark/alluxio_conf:/opt/alluxio/conf
# - ./spark/spark_conf:/opt/spark/conf
# - ./spark/hadoop_conf:/usr/local/hadoop/etc/hadoop
command: ["/usr/bin/supervisord", "--configuration=/opt/conf/slave.conf"]
networks:
- elastest
rest-api:
image: elastest/ebs:latest
depends_on:
- sparkmaster
container_name: restapi
environment:
- EBS_PORT=5000
- EBS_SPARK_MASTER_URL=http://sparkmaster:8080/
links:
- sparkmaster
ports:
- 5000:5000
networks:
- elastest
networks:
elastest:
external: true