2019-06-27 20:42:18 +00:00
|
|
|
version: "3.6"
|
|
|
|
services:
|
2019-10-29 18:37:29 +00:00
|
|
|
|
2019-06-27 20:42:18 +00:00
|
|
|
apiserver:
|
|
|
|
command:
|
|
|
|
- apiserver
|
|
|
|
container_name: trains-apiserver
|
|
|
|
image: allegroai/trains:latest
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2019-10-29 18:37:29 +00:00
|
|
|
- /opt/trains/logs:/var/log/trains
|
|
|
|
- /opt/trains/config:/opt/trains/config
|
2019-10-22 15:43:27 +00:00
|
|
|
depends_on:
|
2019-10-29 18:37:29 +00:00
|
|
|
- redis
|
2019-10-22 15:43:27 +00:00
|
|
|
- mongo
|
|
|
|
- elasticsearch
|
|
|
|
- fileserver
|
2019-08-07 22:51:40 +00:00
|
|
|
environment:
|
2019-10-29 18:37:29 +00:00
|
|
|
ELASTIC_SERVICE_HOST: elasticsearch
|
|
|
|
MONGODB_SERVICE_HOST: mongo
|
|
|
|
REDIS_SERVICE_HOST: redis
|
2019-08-07 22:51:40 +00:00
|
|
|
ports:
|
|
|
|
- "8008:8008"
|
|
|
|
networks:
|
|
|
|
- backend
|
2019-10-29 18:37:29 +00:00
|
|
|
|
2019-06-27 20:42:18 +00:00
|
|
|
elasticsearch:
|
2019-08-07 22:51:40 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2019-06-27 20:42:18 +00:00
|
|
|
container_name: trains-elastic
|
|
|
|
environment:
|
|
|
|
ES_JAVA_OPTS: -Xms2g -Xmx2g
|
|
|
|
bootstrap.memory_lock: "true"
|
|
|
|
cluster.name: trains
|
|
|
|
cluster.routing.allocation.node_initial_primaries_recoveries: "500"
|
|
|
|
discovery.zen.minimum_master_nodes: "1"
|
|
|
|
http.compression_level: "7"
|
|
|
|
node.ingest: "true"
|
|
|
|
node.name: trains
|
|
|
|
reindex.remote.whitelist: '*.*'
|
|
|
|
script.inline: "true"
|
|
|
|
script.painless.regex.enabled: "true"
|
|
|
|
script.update: "true"
|
|
|
|
thread_pool.bulk.queue_size: "2000"
|
|
|
|
thread_pool.search.queue_size: "10000"
|
|
|
|
xpack.monitoring.enabled: "false"
|
|
|
|
xpack.security.enabled: "false"
|
2019-08-07 22:51:40 +00:00
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
2019-10-29 18:37:29 +00:00
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
2019-06-27 20:42:18 +00:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.16
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2019-10-29 18:37:29 +00:00
|
|
|
- /opt/trains/data/elastic:/usr/share/elasticsearch/data
|
2019-08-07 22:51:40 +00:00
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
2019-10-29 18:37:29 +00:00
|
|
|
|
2019-06-27 20:42:18 +00:00
|
|
|
fileserver:
|
2019-08-07 22:51:40 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2019-06-27 20:42:18 +00:00
|
|
|
command:
|
|
|
|
- fileserver
|
|
|
|
container_name: trains-fileserver
|
|
|
|
image: allegroai/trains:latest
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2019-10-29 18:37:29 +00:00
|
|
|
- /opt/trains/logs:/var/log/trains
|
|
|
|
- /opt/trains/data/fileserver:/mnt/fileserver
|
2019-08-07 22:51:40 +00:00
|
|
|
ports:
|
|
|
|
- "8081:8081"
|
2019-10-29 18:37:29 +00:00
|
|
|
|
2019-06-27 20:42:18 +00:00
|
|
|
mongo:
|
2019-08-07 22:51:40 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2019-06-27 20:42:18 +00:00
|
|
|
container_name: trains-mongo
|
|
|
|
image: mongo:3.6.5
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-10-12 18:37:24 +00:00
|
|
|
command: --setParameter internalQueryExecMaxBlockingSortBytes=196100200
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2019-10-29 18:37:29 +00:00
|
|
|
- /opt/trains/data/mongo/db:/data/db
|
|
|
|
- /opt/trains/data/mongo/configdb:/data/configdb
|
2019-08-07 22:51:40 +00:00
|
|
|
ports:
|
|
|
|
- "27017:27017"
|
2019-10-29 18:37:29 +00:00
|
|
|
|
|
|
|
redis:
|
2019-08-07 22:51:40 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2019-10-29 18:37:29 +00:00
|
|
|
container_name: trains-redis
|
|
|
|
image: redis:5.0
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /opt/trains/data/redis:/data
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
|
|
|
|
webserver:
|
2019-06-27 20:42:18 +00:00
|
|
|
command:
|
|
|
|
- webserver
|
|
|
|
container_name: trains-webserver
|
|
|
|
image: allegroai/trains:latest
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2019-10-29 18:37:29 +00:00
|
|
|
- /opt/trains/logs:/var/log/trains
|
2019-10-22 15:43:27 +00:00
|
|
|
depends_on:
|
2019-08-07 22:51:40 +00:00
|
|
|
- apiserver
|
|
|
|
ports:
|
|
|
|
- "8080:80"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
driver: bridge
|