forked from mqtt-tools/mqttwarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
27 lines (26 loc) · 932 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
# To use this Docker Compose file for mqttwarn:
#
# 1. Acquire "docker-compose.yml":
# wget https://raw.githubusercontent.com/jpmens/mqttwarn/main/docker-compose.yml
#
# 2. Create a directory for mqttwarn to store "mqttwarn.ini" and "funcs.py" in:
# mkdir /path/to/mqttwarn
#
# 3. Acquire "mqttwarn.ini":
# wget https://raw.githubusercontent.com/jpmens/mqttwarn/main/mqttwarn/examples/basic/mqttwarn.ini -O /path/to/mqtwarn/mqttwarn.ini
#
# 4. Define the location to the custom functions file within "mqttwarn.ini":
#
# functions = 'funcs.py'
version: '3'
services:
mqttwarn:
image: ghcr.io/jpmens/mqttwarn-full:latest
container_name: mqttwarn
restart: always
volumes:
- /path/to/mqttwarn:/etc/mqttwarn
- /etc/localtime:/etc/localtime:ro
# If you want to change the default location of mqttwarn.ini, uncomment the following lines:
#environment:
# - MQTTWARNINI=/etc/mqttwarn/mqttwarn.ini