-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (52 loc) · 1.32 KB
/
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
47
48
49
50
51
52
version: "3.9"
services:
frontend:
build: src/frontend
depends_on:
db:
condition: service_started
broker:
condition: service_started
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "80:3000"
- "443:4000"
backend:
build: src/backend
network_mode: host
volumes:
- "./src/backend/updates:/app/updates:ro"
depends_on:
db:
condition: service_started
broker:
condition: service_started
environment:
- SECRET_KEY=yuriAuthKey
env_file:
- "src/backend/.env"
db:
build: src/db
volumes:
- "./data/db:/var/lib/mysql"
ports:
- "3306:3306"
broker:
image: eclipse-mosquitto
ports:
- "1883:1883"
volumes:
- "./src/broker/mosquitto.conf:/mosquitto/config/mosquitto.conf"
- "./src/broker/password_file:/mosquitto/password_file"
- "./data/broker/log:/mosquitto/log"
- "./data/broker/data:/mosquitto/data"
explorer:
image: smeagolworms4/mqtt-explorer
depends_on:
broker:
condition: service_started
ports:
- "127.0.0.1:4000:4000"
volumes:
- "./src/broker/explorer:/mqtt-explorer/config"