-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
61 lines (54 loc) · 1.46 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
version: "3.7"
services:
backend:
build: ./mrnaid/backend
container_name: backend
restart: always
volumes:
- ./mrnaid/backend/flask_app/logs/:/backend/flask_app/logs/
environment:
- APP_NAME=backend
- CELERY_BROKER_URL=redis://redis_db:6379
- CELERY_RESULT_BACKEND=redis://redis_db:6379
- LOG_FILE=./logs/logs.log
- BACKEND_OBJECTIVES_DATA=../common/objectives/data
- PYTHONPATH=../common:../common/objectives:../common/constraints\
expose:
- 8080
depends_on:
- redis_db
redis_db:
image: redis
ports:
- "6379:6379"
worker:
build: ./mrnaid/backend
container_name: worker
restart: always
volumes:
- ./mrnaid/backend/flask_app/logs/:/backend/flask_app/logs/
environment:
- CELERY_BROKER_URL=redis://redis_db:6379
- CELERY_RESULT_BACKEND=redis://redis_db:6379
- LOG_FILE=./logs/logs.log
- BACKEND_OBJECTIVES_DATA=../common/objectives/data
- PYTHONPATH=../common:../common/objectives:../common/constraints\
command: celery -A tasks worker --loglevel=info
user: nobody
depends_on:
- redis_db
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=redis://redis_db:6379
- CELERY_RESULT_BACKEND=redis://redis_db:6379
ports:
- "5555:5555"
depends_on:
- worker
frontend:
build: ./mrnaid/frontend
container_name: frontend
restart: always
ports:
- "80:80"