-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
76 lines (70 loc) · 1.56 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.3'
services:
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- /var/lib/docker/volumes/mongodb/_data/mongodb:/data/db
networks:
- app-tier
python_euroleague:
stdin_open: true # docker run -i
tty: true # docker run -t
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongo
networks:
- app-tier
# command:
# python main.py 2022
euroleague-api:
build:
context: ../euroleague-dashboard-api
dockerfile: ./Dockerfile
depends_on:
- python_euroleague
command: bash -c "
uvicorn app.main:app
--host 0.0.0.0 --port 8989
--reload
"
networks:
- app-tier
ports:
- "8989:8989"
volumes:
- ../euroleague-dashboard-api/requirements.txt:/api/requirements.txt
- ../euroleague-dashboard-api/app:/api/app
dashboard:
stdin_open: true # docker run -i
tty: true # docker run -t
build:
context: ../euroleague-dashboard-dash
dockerfile: ./Dockerfile
depends_on:
- euroleague-api
networks:
- app-tier
ports:
- "80:80"
command: bash -c "
gunicorn -b 0.0.0.0:80
main:server
--reload
"
volumes:
- ../euroleague-dashboard-dash/requirements.txt:/requirements.txt
- ../euroleague-dashboard-dash/app:/app
networks:
app-tier:
driver: bridge
volumes:
mongodb:
external: true