-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 976 Bytes
/
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
version: "3.8"
services:
db:
container_name: mysql-container
image: mysql:8.0
restart: always
command: mysqld --default-authentication-plugin=mysql_native_password
volumes:
- ./mysql:/mysql
env_file:
- ./.env.dev
environment:
- MYSQL_ROOT_PASSWORD=${SQL_ROOT_PASSWORD}
- MYSQL_USER=${SQL_USER}
- MYSQL_PASSWORD=${SQL_PASSWORD}
- MYSQL_DATABASE=${SQL_DATABASE}
ports:
- 3307:3306
frontend:
container_name: react-web
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/frontend
- /frontend/node_modules
ports:
- 3000:3000
web:
container_name: django-web
build:
context: ./backend
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend/:/backend
env_file:
- ./.env.dev
ports:
- 8000:8000
depends_on:
- db
links:
- db