-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
executable file
·57 lines (49 loc) · 1.05 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
version: "3.8"
volumes:
mysql_data:
build_folder:
services:
mysqldb:
build: ./backend/db
env_file:
- "./backend/db/db.env"
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
backend:
build: ./backend/backend
command: >
bash -c "python wait_mysql.py &&
python manage.py makemigrations &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8080" &&
ports:
- "8080:8080"
volumes:
- ./backend/backend:/app
depends_on:
- mysqldb
links:
- mysqldb
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
command: [ "yarn", "start" ]
ports:
- 3000:3000
volumes:
- ./frontend/:/frontend
tty: true
nginx:
build: ./nginx
ports:
- 80:8080
# volumes:
# - static_volume:/backend/staticfiles
# - media_volume:/backend/mediafiles
# - build_folder:/var/www/frontend
depends_on:
- backend
- frontend