-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.32 KB
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.9'
services:
# MySQL database for the Smartendance project.
smartendance-db:
image: mysql:latest
container_name: smartendance-db
restart: on-failure
networks:
- smartendance-net
ports:
- 3306:3306
# Change this env variables to your own!
environment:
- MYSQL_DATABASE=smartendance_db
- MYSQL_USER=smartendance
- MYSQL_PASSWORD=change_this_default_password!
- MYSQL_ROOT_PASSWORD=change_this_root_password!
volumes:
- smartendance_db:/var/lib/mysql
# Mosquitto MQTT broker for the Smartendance project.
smartendance-mqtt:
image: eclipse-mosquitto:latest
container_name: smartendance-mqtt
restart: on-failure
links:
- smartendance-web
networks:
- smartendance-net
ports:
- 1883:1883
- 9001:9001
volumes:
- ./mqtt/mosquitto.conf:/mosquitto/config/mosquitto.conf
command: mosquitto -c /mosquitto/config/mosquitto.conf
# Flask web application for the Smartendance project.
smartendance-web:
build: ./web
container_name: smartendance-web
restart: on-failure
networks:
- smartendance-net
ports:
- 80:5000
env_file:
- ./web/.flaskenv-sample
depends_on:
- smartendance-db
networks:
smartendance-net:
driver: bridge
volumes:
smartendance_db: