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
|
2021-01-05 17:07:05 +00:00
|
|
|
container_name: clearml-apiserver
|
|
|
|
image: allegroai/clearml:latest
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2021-05-03 15:12:21 +00:00
|
|
|
- /opt/clearml/logs:/var/log/clearml
|
|
|
|
- /opt/clearml/config:/opt/clearml/config
|
2021-01-05 17:07:05 +00:00
|
|
|
- /opt/clearml/data/fileserver:/mnt/fileserver
|
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:
|
2021-05-03 15:12:21 +00:00
|
|
|
CLEARML_ELASTIC_SERVICE_HOST: elasticsearch
|
|
|
|
CLEARML_ELASTIC_SERVICE_PORT: 9200
|
|
|
|
CLEARML_MONGODB_SERVICE_HOST: mongo
|
|
|
|
CLEARML_MONGODB_SERVICE_PORT: 27017
|
|
|
|
CLEARML_REDIS_SERVICE_HOST: redis
|
|
|
|
CLEARML_REDIS_SERVICE_PORT: 6379
|
2024-06-26 07:52:42 +00:00
|
|
|
CLEARML_SERVER_DEPLOYMENT_TYPE: linux
|
2021-05-03 15:12:21 +00:00
|
|
|
CLEARML__apiserver__pre_populate__enabled: "true"
|
|
|
|
CLEARML__apiserver__pre_populate__zip_files: "/opt/clearml/db-pre-populate"
|
|
|
|
CLEARML__apiserver__pre_populate__artifacts_path: "/mnt/fileserver"
|
2022-09-29 16:44:05 +00:00
|
|
|
CLEARML__services__async_urls_delete__enabled: "true"
|
2023-05-25 16:38:07 +00:00
|
|
|
CLEARML__services__async_urls_delete__fileserver__url_prefixes: "[${CLEARML_FILES_HOST:-}]"
|
2024-06-26 07:52:42 +00:00
|
|
|
CLEARML__secure__credentials__services_agent__user_key: ${CLEARML_AGENT_ACCESS_KEY:-}
|
|
|
|
CLEARML__secure__credentials__services_agent__user_secret: ${CLEARML_AGENT_SECRET_KEY:-}
|
2019-08-07 22:51:40 +00:00
|
|
|
ports:
|
|
|
|
- "8008:8008"
|
|
|
|
networks:
|
|
|
|
- backend
|
2021-01-05 17:07:05 +00:00
|
|
|
- frontend
|
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
|
2021-01-05 17:07:05 +00:00
|
|
|
container_name: clearml-elastic
|
2019-06-27 20:42:18 +00:00
|
|
|
environment:
|
|
|
|
bootstrap.memory_lock: "true"
|
2021-01-05 17:07:05 +00:00
|
|
|
cluster.name: clearml
|
2019-06-27 20:42:18 +00:00
|
|
|
cluster.routing.allocation.node_initial_primaries_recoveries: "500"
|
2021-01-06 15:44:45 +00:00
|
|
|
cluster.routing.allocation.disk.watermark.low: 500mb
|
|
|
|
cluster.routing.allocation.disk.watermark.high: 500mb
|
|
|
|
cluster.routing.allocation.disk.watermark.flood_stage: 500mb
|
2020-08-10 20:48:38 +00:00
|
|
|
discovery.type: "single-node"
|
2019-06-27 20:42:18 +00:00
|
|
|
http.compression_level: "7"
|
2021-01-05 17:07:05 +00:00
|
|
|
node.name: clearml
|
2024-03-18 13:37:44 +00:00
|
|
|
reindex.remote.whitelist: "'*.*'"
|
2019-06-27 20:42:18 +00:00
|
|
|
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
|
2024-03-24 09:24:51 +00:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.18
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2021-01-14 10:37:25 +00:00
|
|
|
- /opt/clearml/data/elastic_7:/usr/share/elasticsearch/data
|
|
|
|
- /usr/share/elasticsearch/logs
|
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
|
2021-01-14 10:37:25 +00:00
|
|
|
- frontend
|
2019-06-27 20:42:18 +00:00
|
|
|
command:
|
|
|
|
- fileserver
|
2021-01-05 17:07:05 +00:00
|
|
|
container_name: clearml-fileserver
|
|
|
|
image: allegroai/clearml:latest
|
2022-09-29 16:44:05 +00:00
|
|
|
environment:
|
|
|
|
CLEARML__fileserver__delete__allow_batch: "true"
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2021-05-03 15:12:21 +00:00
|
|
|
- /opt/clearml/logs:/var/log/clearml
|
2021-01-05 17:07:05 +00:00
|
|
|
- /opt/clearml/data/fileserver:/mnt/fileserver
|
2021-05-03 15:12:21 +00:00
|
|
|
- /opt/clearml/config:/opt/clearml/config
|
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
|
2021-01-05 17:07:05 +00:00
|
|
|
container_name: clearml-mongo
|
2024-12-05 17:02:48 +00:00
|
|
|
image: mongo:5.0.26
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2022-02-14 13:27:23 +00:00
|
|
|
command: --setParameter internalQueryMaxBlockingSortMemoryUsageBytes=196100200
|
2019-06-27 20:42:18 +00:00
|
|
|
volumes:
|
2022-02-14 13:27:23 +00:00
|
|
|
- /opt/clearml/data/mongo_4/db:/data/db
|
|
|
|
- /opt/clearml/data/mongo_4/configdb:/data/configdb
|
2019-10-29 18:37:29 +00:00
|
|
|
|
|
|
|
redis:
|
2019-08-07 22:51:40 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2021-01-05 17:07:05 +00:00
|
|
|
container_name: clearml-redis
|
2024-03-18 13:53:07 +00:00
|
|
|
image: redis:6.2
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2021-01-05 17:07:05 +00:00
|
|
|
- /opt/clearml/data/redis:/data
|
2019-10-29 18:37:29 +00:00
|
|
|
|
|
|
|
webserver:
|
2019-06-27 20:42:18 +00:00
|
|
|
command:
|
|
|
|
- webserver
|
2021-01-05 17:07:05 +00:00
|
|
|
container_name: clearml-webserver
|
2022-03-22 15:21:58 +00:00
|
|
|
# environment:
|
|
|
|
# CLEARML_SERVER_SUB_PATH : clearml-web # Allow Clearml to be served with a URL path prefix.
|
2021-01-05 17:07:05 +00:00
|
|
|
image: allegroai/clearml:latest
|
2019-10-29 18:37:29 +00:00
|
|
|
restart: unless-stopped
|
2019-10-22 15:43:27 +00:00
|
|
|
depends_on:
|
2019-08-07 22:51:40 +00:00
|
|
|
- apiserver
|
|
|
|
ports:
|
|
|
|
- "8080:80"
|
2021-01-05 17:07:05 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
- frontend
|
2019-08-07 22:51:40 +00:00
|
|
|
|
2022-09-29 16:44:05 +00:00
|
|
|
async_delete:
|
|
|
|
depends_on:
|
|
|
|
- apiserver
|
|
|
|
- redis
|
|
|
|
- mongo
|
|
|
|
- elasticsearch
|
|
|
|
- fileserver
|
|
|
|
container_name: async_delete
|
|
|
|
image: allegroai/clearml:latest
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
CLEARML_ELASTIC_SERVICE_HOST: elasticsearch
|
|
|
|
CLEARML_ELASTIC_SERVICE_PORT: 9200
|
|
|
|
CLEARML_MONGODB_SERVICE_HOST: mongo
|
|
|
|
CLEARML_MONGODB_SERVICE_PORT: 27017
|
|
|
|
CLEARML_REDIS_SERVICE_HOST: redis
|
|
|
|
CLEARML_REDIS_SERVICE_PORT: 6379
|
|
|
|
PYTHONPATH: /opt/clearml/apiserver
|
2022-11-29 15:43:08 +00:00
|
|
|
CLEARML__services__async_urls_delete__fileserver__url_prefixes: "[${CLEARML_FILES_HOST:-}]"
|
2022-09-29 16:44:05 +00:00
|
|
|
entrypoint:
|
|
|
|
- python3
|
|
|
|
- -m
|
|
|
|
- jobs.async_urls_delete
|
|
|
|
- --fileserver-host
|
|
|
|
- http://fileserver:8081
|
|
|
|
volumes:
|
|
|
|
- /opt/clearml/logs:/var/log/clearml
|
2023-11-17 07:39:22 +00:00
|
|
|
- /opt/clearml/config:/opt/clearml/config
|
2022-09-29 16:44:05 +00:00
|
|
|
|
2020-06-01 18:02:49 +00:00
|
|
|
agent-services:
|
2020-06-01 22:29:55 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2021-01-14 10:37:25 +00:00
|
|
|
container_name: clearml-agent-services
|
|
|
|
image: allegroai/clearml-agent-services:latest
|
2021-12-14 13:15:11 +00:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
2020-06-01 18:02:49 +00:00
|
|
|
privileged: true
|
|
|
|
environment:
|
2021-01-14 10:37:25 +00:00
|
|
|
CLEARML_HOST_IP: ${CLEARML_HOST_IP}
|
|
|
|
CLEARML_WEB_HOST: ${CLEARML_WEB_HOST:-}
|
|
|
|
CLEARML_API_HOST: http://apiserver:8008
|
|
|
|
CLEARML_FILES_HOST: ${CLEARML_FILES_HOST:-}
|
2024-06-26 07:53:43 +00:00
|
|
|
CLEARML_API_ACCESS_KEY: ${CLEARML_AGENT_ACCESS_KEY:-$CLEARML_API_ACCESS_KEY}
|
|
|
|
CLEARML_API_SECRET_KEY: ${CLEARML_AGENT_SECRET_KEY:-$CLEARML_API_SECRET_KEY}
|
2021-01-14 10:37:25 +00:00
|
|
|
CLEARML_AGENT_GIT_USER: ${CLEARML_AGENT_GIT_USER}
|
|
|
|
CLEARML_AGENT_GIT_PASS: ${CLEARML_AGENT_GIT_PASS}
|
2023-01-03 11:45:52 +00:00
|
|
|
CLEARML_AGENT_UPDATE_VERSION: ${CLEARML_AGENT_UPDATE_VERSION:->=0.17.0}
|
2021-01-14 10:37:25 +00:00
|
|
|
CLEARML_AGENT_DEFAULT_BASE_DOCKER: "ubuntu:18.04"
|
2020-06-01 18:02:49 +00:00
|
|
|
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:-}
|
2021-01-14 10:37:25 +00:00
|
|
|
CLEARML_WORKER_ID: "clearml-services"
|
|
|
|
CLEARML_AGENT_DOCKER_HOST_MOUNT: "/opt/clearml/agent:/root/.clearml"
|
2021-12-14 13:15:11 +00:00
|
|
|
SHUTDOWN_IF_NO_ACCESS_KEY: 1
|
2020-06-01 18:02:49 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-01-14 10:37:25 +00:00
|
|
|
- /opt/clearml/agent:/root/.clearml
|
2020-06-01 18:02:49 +00:00
|
|
|
depends_on:
|
|
|
|
- apiserver
|
2022-03-31 08:10:45 +00:00
|
|
|
entrypoint: >
|
|
|
|
bash -c "curl --retry 10 --retry-delay 10 --retry-connrefused 'http://apiserver:8008/debug.ping' && /usr/agent/entrypoint.sh"
|
2020-06-01 18:02:49 +00:00
|
|
|
|
2019-08-07 22:51:40 +00:00
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
driver: bridge
|
2021-01-05 17:07:05 +00:00
|
|
|
frontend:
|
|
|
|
driver: bridge
|