-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.15 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
version: '3.9'
services:
back:
container_name: dl_back
build: ./flask-backend
image: dl_back
command: gunicorn --workers=4 --bind 0.0.0.0:5000 app:app
expose:
- 5000
environment:
- FLASK_APP=./app.py
- FLASK_DEBUG=0
volumes:
- ./flask-backend:/app
docs:
container_name: dl_docs
build: ./mkdocs-documentation
image: dl_docs
volumes:
- docs_volume:/app/site/
front:
container_name: dl_front
build: ./react-frontend
image: dl_front
environment:
- VITE_BASE_URL
volumes:
- react_volume:/app/dist/
- docs_volume:/app/site/
depends_on:
docs:
condition: service_completed_successfully
nginx:
container_name: dl_nginx
image: nginx:latest
ports:
- 5050:5000
- 3030:3000
volumes:
- react_volume:/app/front/dist/
- docs_volume:/app/front/dist/site/
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
back:
condition: service_started
front:
condition: service_completed_successfully
volumes:
react_volume:
docs_volume: