-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
54 lines (52 loc) · 1.14 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
version: '3.6'
services:
ui:
build:
context: ./frontend
dockerfile: ./Dockerfile.dev
command: yarn start
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- node_modules:/app/node_modules
depends_on:
- api
environment:
- REACT_APP_API=http://127.0.0.1:8000
tty: true
api:
build:
context: ./backend
dockerfile: ./Dockerfile.dev
command: bash -c "uvicorn app:app --host 0.0.0.0 --port 80 --reload"
ports:
- "8000:80"
volumes:
- ./backend:/app
- python_modules:/usr/local/lib/python3.6/site-packages
- bin:/usr/local/bin
depends_on:
- db
environment:
DATABASE_HOST: db
DATABASE_NAME: 'covid'
DATABASE_USER: 'root'
DATABASE_PASSWORD: ''
PEPPER: '56UpUXF8lF'
DEV: 'True'
JWT_SECRET: 'eXqByNjF4w8O3TvR2NZm8qQTG0tVe5yR'
COOKIE_EXPIRATION_SECONDS: '86400'
db:
build:
context: ./backend
dockerfile: ./Dockerfile.db
volumes:
- db:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
volumes:
node_modules:
db:
python_modules:
bin: