-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.example.yaml
54 lines (51 loc) · 1.84 KB
/
docker-compose.example.yaml
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
version: "3"
services:
notebook: # Notebook
build:
image: swiri021/openkbc_msproject:notebookcontainer1
volumes:
- your_library_path:/home/jovyan/work/notebook_lib # Anything you want to import, but you can set up our codes from the github
- your_utils_path:/home/jovyan/work/notebook_utils
- your_archive_path:/home/jovyan/work/notebook_archive
- your_resultFile_path:/home/jovyan/work/resultFiles
- s3data_path_in_your_local:/home/jovyan/MainData # S3 data from our bucket
ports:
- 8888:8888
container_name: notebookContainer
pipelines: # Pipelines
build:
image: swiri021/openkbc_msproject:pipelinecontainer1
deploy:
resources:
limits:
memory: 4000m
volumes:
- pipelines_code_path:/pipelines # This codes from our github(pipeline folder)
- s3data_path_in_your_local:/MainData
- your_resultFile_path:/Output # Directly connected to notebook
ports:
- 80:5000
depends_on:
- redis
container_name: pipelineContainer
working_dir: /pipelines/pipeline_controller
command: conda run -n pipeline_controller_base gunicorn --bind 0.0.0.0:5000 --workers 2 --threads 4 --worker-class gthread connector:app
redis: # redis
image: redis:alpine
command: redis-server
ports:
- 6379:6379
container_name: redisServer
celery: # celery
build:
image: swiri021/openkbc_msproject:celerycontainer1
volumes: # Celery volume path should be the same with pipeline volume
- pipelines_code_path:/pipelines
- s3data_path_in_your_local:/MainData
- your_resultFile_path:/Output
working_dir: /pipelines/pipeline_controller/
command: conda run -n pipeline_controller_base celery -A app.celery worker --loglevel=info
depends_on:
- redis
- pipelines
container_name: celeryContainer