Modify mosquitto
This commit is contained in:
parent
d8c1efcca0
commit
aa0a7686af
|
|
@ -16,6 +16,9 @@ services:
|
||||||
- 8384:8384
|
- 8384:8384
|
||||||
- 22000:22000
|
- 22000:22000
|
||||||
- 21027:21027/udp
|
- 21027:21027/udp
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
milvert-nginx:
|
milvert-nginx:
|
||||||
|
|
@ -91,7 +94,7 @@ services:
|
||||||
- INFLUXDB_ADMIN_PASSWORD=SECURE_PASS
|
- INFLUXDB_ADMIN_PASSWORD=SECURE_PASS
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
image: gitea/gitea:1.9.3
|
image: gitea/gitea:1.12
|
||||||
container_name: gitea
|
container_name: gitea
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
@ -144,7 +147,9 @@ services:
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ=Europe/Stockholm
|
- TZ=Europe/Stockholm
|
||||||
volumes:
|
volumes:
|
||||||
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
|
- ./mosquitto/mosquitto.conf:/mqtt/mosquitto.conf
|
||||||
|
- ${DIR}/mqtt/data:/mqtt/data
|
||||||
|
- ${DIR}/mqtt/log:/mqtt/log
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.mqtt.rule=Host(`mqtt.${DOMAIN}`)"
|
- "traefik.http.routers.mqtt.rule=Host(`mqtt.${DOMAIN}`)"
|
||||||
- "traefik.http.routers.mqtt.entrypoints=mqtt"
|
- "traefik.http.routers.mqtt.entrypoints=mqtt"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,18 @@
|
||||||
persistence true
|
pid_file /var/run/mosquitto.pid
|
||||||
persistence_location /mosquitto/data/
|
|
||||||
log_dest file /mosquitto/log/mosquitto.log
|
|
||||||
|
|
||||||
|
persistence true
|
||||||
|
persistence_location /mqtt/data/
|
||||||
|
|
||||||
|
user mosquitto
|
||||||
|
|
||||||
|
# Port to use for the default listener.
|
||||||
|
port 1883
|
||||||
|
|
||||||
|
|
||||||
|
log_dest file /mqtt/log/mosquitto.log
|
||||||
|
log_dest stdout
|
||||||
|
|
||||||
|
include_dir /mqtt/config
|
||||||
|
|
||||||
listener 1883
|
listener 1883
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue