-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 973 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 973 Bytes
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
services:
mysql:
image: mysql:8.0
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: flask_vue_db
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
flask:
build:
context: ./Software
dockerfile: Dockerfile
container_name: flask
environment:
FLASK_ENV: development
FLASK_APP: Flask.app # Pointing to Flask/app.py
volumes:
- ./Software/Flask:/Flask
- /dev:/dev # This will give the container access to the host's COM ports
expose:
- "5000"
depends_on:
- mysql
networks:
- backend
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./Software/Nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- flask
networks:
- backend
volumes:
mysql_data:
networks:
backend: