-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (39 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
43 lines (39 loc) · 789 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
version: '3.8'
services:
# Flask Application
app:
container_name: bus-management-app
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
- FLASK_APP=init.py
- FLASK_ENV=development
- MYSQL_HOST=db
- MYSQL_USER=root
- MYSQL_PASSWORD=root_password
- MYSQL_DB=bus_management
volumes:
- .:/app
depends_on:
- db
networks:
- bms_network
# MySQL Database
db:
container_name: bus-management-db
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: bus_management
volumes:
- mysql_data:/var/lib/mysql
networks:
- bms_network
networks:
bms_network:
driver: bridge
volumes:
mysql_data: