-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 883 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
services:
mysql:
image: mysql:8.0-debian
container_name: BasicFitSmartLocker_MySQL
restart: always
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "${MYSQL_PORT}:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./database:/docker-entrypoint-initdb.d
mosquitto:
image: eclipse-mosquitto:2.0.22
container_name: BasicFitSmartLocker_MQTT
restart: always
ports:
- "${MOSQUITTO_PORT}:1883"
volumes:
- ./mosquitto/config:/mosquitto/config
mosquitto-init:
image: eclipse-mosquitto:2.0.22
depends_on:
- mosquitto
volumes:
- ./mosquitto/init/mosquitto-init.sh:/mosquitto-init.sh
entrypoint: [ "/bin/sh", "/mosquitto-init.sh" ]
volumes:
mysql_data: