-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
52 lines (47 loc) · 1.03 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
version: "3"
services:
db:
container_name: db
image: mysql:latest
volumes:
- mysql_data_dev:/var/lib/mysql
environment:
MYSQL_DATABASE: dev_db
MYSQL_ROOT_PASSWORD: root
restart: always
ports:
- 3306:3306
backend:
container_name: backend
build: ./backend
restart: always
ports:
- 8080:8000
command: >
ash -c "python wait_for_mysql.py
&& uvicorn main:app --host 0.0.0.0 --reload"
volumes:
- ./backend/:/backend/
expose:
- 8080
# env_file:
# - ./settings/dev/.env.dev
depends_on:
- db
# frontend:
# container_name: dev-frontend
# build:
# context: ./frontend
# command: [ "yarn", "start" ]
# ports:
# - 80:3000
# volumes:
# - ./frontend/:/frontend
# - ./frontend/node_modules/:/frontend/node_modules
# environment:
# - CI=true
# - CHOKIDAR_USEPOLLING=true
# - REACT_APP_BACKEND_URL=http://localhost:8080
# tty: true
volumes:
mysql_data_dev: null