-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (75 loc) · 1.71 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
version: '2.1'
services:
index_rawdata:
build:
context: .
dockerfile: Dockerfile
restart: always
networks:
- pw-bd-net
volumes:
- .:/app/
command: sh -c "./wait-for-it.sh -t 60 elastic:9200 && python3 ./app/gcp_pubsub/subscribers/main.py --project-id ${PROJECT_ID} --topic ${TOPIC_NAME}"
acquire_rawdata:
build:
context: .
dockerfile: Dockerfile
restart: always
networks:
- pw-bd-net
depends_on:
- index_rawdata
volumes:
- .:/app/
command: sh -c "python3 ./app/socket_reader/read.py --url ${WS_URL} --project-id ${PROJECT_ID} --topic ${TOPIC_NAME}"
elastic:
build:
context: ./resources/elasticsearch
dockerfile: Dockerfile
restart: always
networks:
- pw-bd-net
ports:
- "9202:9200"
environment:
- cluster.name=pw-bd-project
- node.name=master
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms10g -Xmx10g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:6.5.1
restart: always
networks:
- pw-bd-net
ports:
- "5602:5601"
volumes:
- ./resources/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
spark_streaming:
image: pw-bd-project-scala_spark:latest
restart: always
networks:
- pw-bd-net
depends_on:
- acquire_rawdata
ports:
- '8889:8888'
- '4042:4040'
command: "sh run.sh"
networks:
pw-bd-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 171.15.238.0/24
gateway: 171.15.238.1
volumes:
esdata:
driver: local