-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
57 lines (53 loc) · 1.46 KB
/
docker-compose-dev.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"
services:
api:
build:
context: .
args:
PYTHON_VERSION: ${PYTHON_VERSION}
command: bash -c "gunicorn -w $MAX_NUMBER_OF_JOB -b 0.0.0.0:5000 app:app --timeout 300 --reload --log-level debug & ./bash/computation.sh ${MAX_NUMBER_OF_JOB} & python ./utils/update_status.py"
container_name: selbat_api
env_file:
- ./.env
environment:
FLASK_DEBUG: 1
ports:
- "${SELBAT_PORT}:5000"
restart: always
volumes:
- ./api:/code
mongo:
image: "mongo:${MONGO_VERSION}"
container_name: "selbat_mongo"
ports:
- "${MONGO_PORT}:27017"
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
volumes:
- ./mongo-data:/data/db
redis:
image: redis:alpine
container_name: selbat_redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
volumes:
- './redis-data:/data'
jupyter:
image: roby944/jupyter-extended
container_name: selbat_jupyter
env_file:
- ./.env
environment:
JUPYTER_ENABLE_LAB: "yes"
ports:
- "${JUPYTER_PORT}:8888"
restart: always
volumes:
- ./work:/home/jovyan/work
- ./api:/home/jovyan/work/api
- ~/my-data:/home/jovyan/work/my-data
- ~/my-data:/data/my-data
- ./scripts:/home/jovyan/work/scripts # Added volume for scripts