-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
45 lines (43 loc) · 1.01 KB
/
docker-compose.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
version: "3"
services:
frontend:
build: ./frontend
environment:
- REACT_APP_BACKEND_URL=http://backend:8000
volumes:
- react_build:/app/build
# ports:
# - "3000:3000"
backend:
build: ./backend
environment:
- FLASK_APP=server.py
- CELERY_BROKER_URL=redis://redis:6379/1
- CELERY_RESULT_BACKEND=redis://redis:6379/2
command: ["gunicorn", "server:app", "-c", "./gunicorn.conf.py"]
# ports:
# - "8000:8000"
worker:
build: ./backend
environment:
- FLASK_APP=server.py
- CELERY_BROKER_URL=redis://redis:6379/1
- CELERY_RESULT_BACKEND=redis://redis:6379/2
command: ["celery", "-A", "celery_task", "worker", "--loglevel=info"]
redis:
image: redis
# ports:
# - "6379:6379"
# mongo:
# image: mongo
# # ports:
# # - "27017:27017"
nginx:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- react_build:/app/build
ports:
- "8001:80"
volumes:
react_build: