-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
168 lines (158 loc) · 3.95 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
version: '2'
services:
gobybus-registry:
image: gobybus_gobybus-registry
mem_limit: 550m
cap_add:
- SYS_PTRACE
restart: always
ports:
- "8761:8761"
- "14094:14096"
- "4001:4001"
environment:
APP_PORT: 8761
REGESTRY_HOSTNAME: "gobybus-registry"
CONFIG_SERVER_URI: "http://gobybus-configserver:8888"
volumes:
- "/opt/tmp/goByBus-registry/:/tmp"
- "/opt/tmp/goByBus-registry/logs:/tmp/goByBus-registry/logs"
gobybus-configserver:
image: gobybus_gobybus-configserver
mem_limit: 900m
cap_add:
- SYS_PTRACE
restart: always
ports:
- "8888:8888"
- "14095:14096"
- "4011:4001"
environment:
APP_PORT: 8888
volumes:
- "/opt/tmp/goByBus-configserver/:/tmp"
- "/opt/tmp/goByBus-configserver/logs:/tmp/goByBus-configServer/logs"
gobybus-locationcrawler:
image: gobybus_gobybus-locationcrawler
mem_limit: 500m
cap_add:
- SYS_PTRACE
restart: always
ports:
- "8080:8080"
- "14096:14096"
- "4021:4001"
environment:
APP_PORT: 8080
CONFIG_SERVER_URI: "http://gobybus-configserver:8888"
env_file:
- secret-keys.properties
- kafka.properties
volumes:
- "/opt/tmp/goByBus-locationcrawler/:/tmp"
- "/opt/tmp/goByBus-locationcrawler/logs:/tmp/goByBus-locationCrawler/logs"
depends_on:
- kafka
gobybus-busstopcrawler:
image: gobybus_gobybus-busstopcrawler
mem_limit: 500m
cap_add:
- SYS_PTRACE
restart: always
ports:
- "8085:8085"
- "14097:14096"
- "4031:4001"
env_file:
- "locations-mongo.properties"
- "secret-keys.properties"
environment:
APP_PORT: 8085
JAVA_OPTIONS: '-Xmx300m -XX:MaxMetaspaceSize=60m'
CONFIG_SERVER_URI: "http://gobybus-configserver:8888"
volumes:
- "/opt/tmp/goByBus-busstopcrawler/:/tmp"
- "/opt/tmp/goByBus-busstopcrawler/logs:/tmp/goByBus-BusStopCrawler/logs"
depends_on:
- locations-mongo
gobybus-locationviewer:
image: gobybus_gobybus-locationviewer
mem_limit: 500m
cap_add:
- SYS_PTRACE
ports:
- "8081:8081"
- "14098:14096"
- "4041:4001"
env_file:
- kafka.properties
- locations-mongo.properties
environment:
APP_PORT: 8081
KAFKA_LOCATION_GROUP: positionViewers
CONFIG_SERVER_URI: "http://gobybus-configserver:8888"
volumes:
- "/opt/tmp/goByBus-locationviewer/:/tmp"
- "/opt/tmp/goByBus-locationviewer/logs:/tmp/goByBus-locationviewer/logs"
depends_on:
- kafka
- locations-mongo
locations-mongo:
build: ./GoByBus-Dockerfiles/gobybus-locations-mongo
mem_limit: 1G
ports:
- "27017:27017"
env_file: locations-mongo.properties
volumes:
- "/opt/tmp/goByBus-locations-mongo/:/tmp"
- "~/gobybus-data:/data/"
gobybus-web:
image: gobybus_gobybus-web
mem_limit: 800m
cap_add:
- SYS_PTRACE
restart: always
ports:
- "8090:8090"
- "14099:14096"
- "4051:4001"
env_file: locations-mongo.properties
environment:
APP_PORT: 8090
CONFIG_SERVER_URI: "http://gobybus-configserver:8888"
volumes:
- "/opt/tmp/goByBus-web/:/tmp"
- "/opt/tmp/goByBus-web/logs:/tmp/goByBus-web/logs"
kafka:
image: spotify/kafka
mem_limit: 2G
ports:
- "2181:2181"
- "9092:9092"
hostname: kafka
environment:
ADVERTISED_HOST: kafka
ADVERTISED_PORT: 9092
TERM: xterm
volumes:
- "/opt/tmp/goByBus-kafka/:/tmp"
elk:
image: sebp/elk
mem_limit: 5G
restart: always
privileged: true
environment:
TZ: "Europe/Warsaw"
ES_JAVA_OPTS: "-Xms4g -Xmx4g"
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
portainer:
image: portainer/portainer
ports:
- 9000:9000
command: --templates http://templates/templates.json
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/portainer/data:/data