-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 912 Bytes
/
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
services:
app:
restart: unless-stopped
container_name: ppe-detection-for-construction-site-safety
build:
dockerfile: "./Dockerfile"
environment:
MQTT_CLIENT_ID: "${MQTT_CLIENT_ID}"
MQTT_SUB_TOPIC: "${MQTT_SUB_TOPIC}"
MQTT_PUB_TOPIC: "${MQTT_PUB_TOPIC}"
MQTT_HOSTNAME: "${MQTT_HOSTNAME}"
MQTT_USERNAME: "${MQTT_USERNAME}"
MQTT_PASSWORD: "${MQTT_PASSWORD}"
MQTT_PORT: "${MQTT_PORT}"
volumes:
- "./cfg:/app/cfg"
- "./data:/app/data"
depends_on:
- mosquitto_broker
networks:
- ppenetwork
mosquitto_broker:
restart: unless-stopped
image: eclipse-mosquitto
container_name: mosquitto
ports:
- "1883:1883"
volumes:
- "./mosquitto.conf:/mosquitto/config/mosquitto.conf"
- "./passwd_file:/mosquitto/config/passwd_file"
networks:
- ppenetwork
networks:
ppenetwork: