-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-celery.yml
57 lines (53 loc) · 1.35 KB
/
docker-compose-celery.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
version: "3.6"
services:
worker:
build:
context: ./
dockerfile: ./docker/celery/Dockerfile-Worker
args:
- CMS_MODEL_NAME=$CMS_MODEL_NAME
- CMS_UID=${CMS_UID:-1000}
- CMS_GID=${CMS_GID:-1000}
- HTTP_PROXY=$HTTP_PROXY
- HTTPS_PROXY=$HTTPS_PROXY
- NO_PROXY=$NO_PROXY
container_name: cms_worker
networks:
- cms
volumes:
- ${MODEL_PACKAGE_FULL_PATH}:/app/model/model.zip:ro
# - retrained-models:/app/model/retrained
- ./docker/celery/.env:/app/envs/.env:ro
environment:
- CMS_MODEL_TYPE=$CMS_MODEL_TYPE
- CMS_MODEL_NAME=$CMS_MODEL_NAME
- CMS_BASE_MODEL_PATH=${CMS_BASE_MODEL_PATH:-/app/model/model.zip}
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- redis
dashboard:
build:
context: ./
dockerfile: ./docker/celery/Dockerfile-Dashboard
container_name: cms_worker_dashboard
networks:
- cms
ports:
- 5555:5555
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- worker
redis:
image: redis:7
container_name: cms_redis
networks:
- cms
ports:
- 6379:6379
networks:
cms:
name: cogstack-model-serve_cms
driver: bridge