-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 952 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
version: "3"
services:
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
volumes:
- .:/application
- ./db/db.sql:/docker-entrypoint-initdb.d/db.sql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=PlantZo@123
- MYSQL_DATABASE=plantzo
networks:
- python-network
plantzo-backend:
container_name: plantzo-backend
build: ./api
ports:
- "5000:5000"
volumes:
- ./api:/app
environment:
FLASK_ENV: development
restart: always
depends_on:
- mysql
networks:
- python-network
links:
- mysql
plantzo-frontend:
container_name: plantzo-frontend
build: ./client
ports:
- "80:3000"
volumes:
- ./client:/user/src/app
depends_on:
- plantzo-backend
restart: unless-stopped
networks:
- python-network
networks:
python-network:
driver: bridge