forked from IndustryEssentials/ymir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·134 lines (127 loc) · 3.75 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
version: "3.3"
services:
backend:
image: industryessentials/ymir-backend
env_file:
- .env
runtime: ${SERVER_RUNTIME}
environment:
- BACKEND_REDIS_URL=redis://redis:6379/0
# controller
- NVIDIA_VISIBLE_DEVICES=all
- SANDBOX=${YMIR_PATH}/ymir-data/sandbox
- MODELS_PATH=${YMIR_PATH}/ymir-models
- ASSETS_PATH=${YMIR_PATH}/ymir-assets
- CONTROLLER_LOG_PATH=${YMIR_PATH}/ymir-data/logs
- DATA_SOURCE=/data/sharing
# viz
- SANDBOX_ROOT=${YMIR_PATH}/ymir-data/sandbox
- VIZ_REDIS_URI=redis://:@viz-redis
# app
- DATABASE_URI=mysql+pymysql://user:passwd@db/ymir
- GRPC_CHANNEL=127.0.0.1:50066
- VIZ_HOST=127.0.0.1:9099
- SHARED_DATA_DIR=/data/sharing
- NGINX_DATA_PATH=/ymir-storage
# arq
- CHECK_INTERVAL_IN_SECONDS=30
# monitor
- POSTMAN_URL=http://127.0.0.1:8090
- MONITOR_URL=http://127.0.0.1:9098
- APP_API_HOST=127.0.0.1:80
volumes:
- "${YMIR_PATH}/ymir-data/sandbox:${YMIR_PATH}/ymir-data/sandbox"
- "${YMIR_PATH}/ymir-data/logs:/app_logs"
- "${YMIR_PATH}/ymir-models:${YMIR_PATH}/ymir-models"
- "${YMIR_PATH}/ymir-assets:${YMIR_PATH}/ymir-assets"
# special volumes for start container in container
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- /usr/bin/nvidia-docker:/usr/bin/nvidia-docker
- /usr/bin/nvidia-smi:/usr/bin/nvidia-smi
- /lib64/libltdl.so.7:/lib64/libltdl.so.7
# app
- ${YMIR_PATH}/ymir-storage:/ymir-storage
- ${YMIR_PATH}/importing_pic:/data/sharing
# tensorboard
- "${TENSORBOARD_ROOT}:${TENSORBOARD_ROOT}"
depends_on:
- db
- redis
- viz-redis
- tensorboard
- clickhouse
command: bash -c 'cd /app && supervisord -nc supervisor/supervisord.conf'
restart: on-failure:10
networks:
- ymirnetwork
redis:
image: industryessentials/ymir-backend-redis
command: redis-server /config/redis/redis.conf --loadmodule /usr/lib/redis/modules/redisgraph.so
volumes:
- ${YMIR_PATH}/redis:/var/log/redis
- ${YMIR_PATH}/redis:/data
restart: on-failure:10
networks:
- ymirnetwork
viz-redis:
image: industryessentials/ymir-viz-redis
restart: on-failure:10
networks:
- ymirnetwork
web:
image: industryessentials/ymir-web
volumes:
- "${YMIR_PATH}/ymir-models:/data/ymir/ymir-models"
- "${YMIR_PATH}/ymir-assets:/data/ymir/ymir-assets"
- "${YMIR_PATH}/ymir-storage:/data/ymir/ymir-storage"
environment:
- LABEL_TOOL_URL=${LABEL_TOOL_URL}
ports:
- ${NGINX_PORT}:80
restart: on-failure:10
depends_on:
- backend
networks:
- ymirnetwork
db:
image: 'mysql/mysql-server:8.0.25'
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- ${YMIR_PATH}/mysql:/var/lib/mysql
restart: on-failure:10
networks:
- ymirnetwork
tensorboard:
image: tensorflow/tensorflow:latest
env_file:
- .env
volumes:
- "${TENSORBOARD_ROOT}:${TENSORBOARD_ROOT}"
command: tensorboard --logdir ${TENSORBOARD_ROOT} --port 6006 --bind_all
restart: on-failure:10
networks:
- ymirnetwork
clickhouse:
image: clickhouse/clickhouse-server
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- ${YMIR_PATH}/clickhouseDB:/var/lib/clickhouse
restart: on-failure:10
networks:
- ymirnetwork
networks:
ymirnetwork:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.254.0/24
gateway: 172.168.254.1