mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +00:00
154 lines
4.3 KiB
YAML
154 lines
4.3 KiB
YAML
version: "3.6"
|
|
services:
|
|
|
|
apiserver:
|
|
command:
|
|
- apiserver
|
|
container_name: trains-apiserver
|
|
image: allegroai/trains:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/trains/logs:/var/log/trains
|
|
- /opt/trains/config:/opt/trains/config
|
|
depends_on:
|
|
- redis
|
|
- mongo
|
|
- elasticsearch
|
|
- fileserver
|
|
environment:
|
|
TRAINS_ELASTIC_SERVICE_HOST: elasticsearch
|
|
TRAINS_ELASTIC_SERVICE_PORT: 9200
|
|
TRAINS_MONGODB_SERVICE_HOST: mongo
|
|
TRAINS_MONGODB_SERVICE_PORT: 27017
|
|
TRAINS_REDIS_SERVICE_HOST: redis
|
|
TRAINS_REDIS_SERVICE_PORT: 6379
|
|
TRAINS_SERVER_DEPLOYMENT_TYPE: ${TRAINS_SERVER_DEPLOYMENT_TYPE:-linux}
|
|
TRAINS__apiserver__mongo__pre_populate__enabled: "true"
|
|
TRAINS__apiserver__mongo__pre_populate__zip_file: "/opt/trains/db-pre-populate/export.zip"
|
|
ports:
|
|
- "8008:8008"
|
|
networks:
|
|
- backend
|
|
|
|
elasticsearch:
|
|
networks:
|
|
- backend
|
|
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"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
nofile:
|
|
soft: 65536
|
|
hard: 65536
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.16
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/trains/data/elastic:/usr/share/elasticsearch/data
|
|
ports:
|
|
- "9200:9200"
|
|
|
|
fileserver:
|
|
networks:
|
|
- backend
|
|
command:
|
|
- fileserver
|
|
container_name: trains-fileserver
|
|
image: allegroai/trains:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/trains/logs:/var/log/trains
|
|
- /opt/trains/data/fileserver:/mnt/fileserver
|
|
ports:
|
|
- "8081:8081"
|
|
|
|
mongo:
|
|
networks:
|
|
- backend
|
|
container_name: trains-mongo
|
|
image: mongo:3.6.5
|
|
restart: unless-stopped
|
|
command: --setParameter internalQueryExecMaxBlockingSortBytes=196100200
|
|
volumes:
|
|
- /opt/trains/data/mongo/db:/data/db
|
|
- /opt/trains/data/mongo/configdb:/data/configdb
|
|
ports:
|
|
- "27017:27017"
|
|
|
|
redis:
|
|
networks:
|
|
- backend
|
|
container_name: trains-redis
|
|
image: redis:5.0
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/trains/data/redis:/data
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
webserver:
|
|
command:
|
|
- webserver
|
|
container_name: trains-webserver
|
|
image: allegroai/trains:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/trains/logs:/var/log/trains
|
|
depends_on:
|
|
- apiserver
|
|
ports:
|
|
- "8080:80"
|
|
|
|
agent-services:
|
|
networks:
|
|
- backend
|
|
container_name: trains-agent-services
|
|
image: allegroai/trains-agent-services:latest
|
|
restart: unless-stopped
|
|
privileged: true
|
|
environment:
|
|
TRAINS_HOST_IP: ${TRAINS_HOST_IP}
|
|
TRAINS_WEB_HOST: ${TRAINS_WEB_HOST:-}
|
|
TRAINS_API_HOST: http://apiserver:8008
|
|
TRAINS_FILES_HOST: ${TRAINS_FILES_HOST:-}
|
|
TRAINS_API_ACCESS_KEY: ${TRAINS_API_ACCESS_KEY:-}
|
|
TRAINS_API_SECRET_KEY: ${TRAINS_API_SECRET_KEY:-}
|
|
TRAINS_AGENT_GIT_USER: ${TRAINS_AGENT_GIT_USER}
|
|
TRAINS_AGENT_GIT_PASS: ${TRAINS_AGENT_GIT_PASS}
|
|
TRAINS_AGENT_UPDATE_VERSION: ${TRAINS_AGENT_UPDATE_VERSION:->=0.15.0}
|
|
TRAINS_AGENT_DEFAULT_BASE_DOCKER: "ubuntu:18.04"
|
|
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-}
|
|
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-}
|
|
AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION:-}
|
|
AZURE_STORAGE_ACCOUNT: ${AZURE_STORAGE_ACCOUNT:-}
|
|
AZURE_STORAGE_KEY: ${AZURE_STORAGE_KEY:-}
|
|
GOOGLE_APPLICATION_CREDENTIALS: ${GOOGLE_APPLICATION_CREDENTIALS:-}
|
|
TRAINS_WORKER_ID: "trains-services"
|
|
TRAINS_AGENT_DOCKER_HOST_MOUNT: "/opt/trains/agent:/root/.trains"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /opt/trains/agent:/root/.trains
|
|
depends_on:
|
|
- apiserver
|
|
|
|
networks:
|
|
backend:
|
|
driver: bridge
|