auto commit

This commit is contained in:
bangdk 2024-11-20 15:58:37 +09:00
parent ef6a55f447
commit d4109b792f
2 changed files with 119 additions and 4 deletions

View File

@ -97,19 +97,28 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${MQTT_PORT}:1883" # MQTT - "${MQTT_PORT}:1883" # MQTT
- "${MQTT_WSS_PORT}:8883" # MQTT over WebSocket - "${MQTT_WSS_PORT}:8883" # WebSocket
volumes: volumes:
- ./fems-mqtt/config:/mosquitto/config - ./fems-mqtt/config:/mosquitto/config:ro
- ./fems-mqtt/data:/mosquitto/data - ./fems-mqtt/data:/mosquitto/data
- ./fems-mqtt/log:/mosquitto/log - ./fems-mqtt/log:/mosquitto/log
- ./fems-mqtt/certs:/mosquitto/certs - ./fems-mqtt/certs:/mosquitto/certs:ro
environment: environment:
- TZ=Asia/Seoul - TZ=Asia/Seoul
- MQTT_USERNAME=${MQTT_USERNAME}
- MQTT_PASSWORD=${MQTT_PASSWORD}
healthcheck: healthcheck:
test: ["CMD", "/usr/sbin/mosquitto_sub", "-t", "$$SYS/#", "-C", "1"] test:
[
"CMD-SHELL",
"mosquitto_sub -h localhost -t '$$SYS/#' -C 1 -u ${MQTT_USERNAME} -P ${MQTT_PASSWORD} || exit 1",
]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
depends_on:
- fems-postgres
- fems-timescaledb
volumes: volumes:
fems_postgres: fems_postgres:

106
fems-mqtt/log/mosquitto.log Normal file
View File

@ -0,0 +1,106 @@
1732085868: mosquitto version 2.0.20 starting
1732085868: Config loaded from /mosquitto/config/mosquitto.conf.
1732085868: Warning: File /mosquitto/config/passwd has world readable permissions. Future versions will refuse to load this file.
To fix this, use `chmod 0700 /mosquitto/config/passwd`.
1732085868: Opening ipv4 listen socket on port 1883.
1732085868: Opening ipv6 listen socket on port 1883.
1732085868: Opening websockets listen socket on port 8883.
1732085868: mosquitto version 2.0.20 running
1732085868: New connection from 172.19.0.9:53512 on port 1883.
1732085868: Client fems-realtime-api-39 disconnected, not authorised.
1732085869: New connection from 172.19.0.9:53524 on port 1883.
1732085869: Client fems-realtime-api-39 disconnected, not authorised.
1732085870: New connection from 172.19.0.9:53538 on port 1883.
1732085870: Client fems-realtime-api-39 disconnected, not authorised.
1732085871: New connection from 172.19.0.9:53550 on port 1883.
1732085871: Client fems-realtime-api-39 disconnected, not authorised.
1732085872: New connection from 172.19.0.9:53552 on port 1883.
1732085872: Client fems-realtime-api-39 disconnected, not authorised.
1732085873: New connection from 172.19.0.9:53564 on port 1883.
1732085873: Client fems-realtime-api-39 disconnected, not authorised.
1732085874: New connection from 172.19.0.9:53580 on port 1883.
1732085874: Client fems-realtime-api-39 disconnected, not authorised.
1732085875: New connection from 172.19.0.9:35622 on port 1883.
1732085875: Client fems-realtime-api-39 disconnected, not authorised.
1732085876: New connection from 172.19.0.9:35624 on port 1883.
1732085876: Client fems-realtime-api-39 disconnected, not authorised.
1732085877: New connection from 172.19.0.9:35628 on port 1883.
1732085877: Client fems-realtime-api-39 disconnected, not authorised.
1732085878: New connection from 172.19.0.9:35642 on port 1883.
1732085878: Client fems-realtime-api-39 disconnected, not authorised.
1732085879: New connection from 172.19.0.9:35654 on port 1883.
1732085879: Client fems-realtime-api-39 disconnected, not authorised.
1732085880: New connection from 172.19.0.9:35666 on port 1883.
1732085880: Client fems-realtime-api-39 disconnected, not authorised.
1732085881: New connection from 172.19.0.9:35680 on port 1883.
1732085881: Client fems-realtime-api-39 disconnected, not authorised.
1732085882: New connection from 172.19.0.9:35696 on port 1883.
1732085882: Client fems-realtime-api-39 disconnected, not authorised.
1732085883: New connection from 172.19.0.9:35706 on port 1883.
1732085883: Client fems-realtime-api-39 disconnected, not authorised.
1732085884: New connection from 172.19.0.9:35710 on port 1883.
1732085884: Client fems-realtime-api-39 disconnected, not authorised.
1732085885: New connection from 172.19.0.9:53104 on port 1883.
1732085885: Client fems-realtime-api-39 disconnected, not authorised.
1732085886: New connection from 172.19.0.9:53120 on port 1883.
1732085886: Client fems-realtime-api-39 disconnected, not authorised.
1732085887: New connection from 172.19.0.9:53132 on port 1883.
1732085887: Client fems-realtime-api-39 disconnected, not authorised.
1732085888: New connection from 172.19.0.9:53142 on port 1883.
1732085888: Client fems-realtime-api-39 disconnected, not authorised.
1732085889: New connection from 172.19.0.9:53158 on port 1883.
1732085889: Client fems-realtime-api-39 disconnected, not authorised.
1732085890: New connection from 172.19.0.9:53168 on port 1883.
1732085890: Client fems-realtime-api-39 disconnected, not authorised.
1732085891: New connection from 172.19.0.9:53174 on port 1883.
1732085891: Client fems-realtime-api-39 disconnected, not authorised.
1732085892: New connection from 172.19.0.9:53176 on port 1883.
1732085892: Client fems-realtime-api-39 disconnected, not authorised.
1732085893: New connection from 172.19.0.9:53184 on port 1883.
1732085894: Client fems-realtime-api-39 disconnected, not authorised.
1732085895: New connection from 172.19.0.9:59938 on port 1883.
1732085895: Client fems-realtime-api-39 disconnected, not authorised.
1732085896: New connection from 172.19.0.9:59948 on port 1883.
1732085896: Client fems-realtime-api-39 disconnected, not authorised.
1732085897: New connection from 172.19.0.9:59956 on port 1883.
1732085897: Client fems-realtime-api-39 disconnected, not authorised.
1732085898: New connection from 172.19.0.9:59966 on port 1883.
1732085898: Client fems-realtime-api-39 disconnected, not authorised.
1732085899: New connection from 172.19.0.9:59974 on port 1883.
1732085899: Client fems-realtime-api-39 disconnected, not authorised.
1732085900: New connection from 172.19.0.9:59986 on port 1883.
1732085900: Client fems-realtime-api-39 disconnected, not authorised.
1732085901: New connection from 172.19.0.9:59996 on port 1883.
1732085901: Client fems-realtime-api-39 disconnected, not authorised.
1732085902: New connection from 172.19.0.9:60006 on port 1883.
1732085902: Client fems-realtime-api-39 disconnected, not authorised.
1732085903: New connection from 172.19.0.9:60022 on port 1883.
1732085903: Client fems-realtime-api-39 disconnected, not authorised.
1732085904: New connection from 172.19.0.9:60036 on port 1883.
1732085904: Client fems-realtime-api-39 disconnected, not authorised.
1732085905: New connection from 172.19.0.9:54420 on port 1883.
1732085905: Client fems-realtime-api-39 disconnected, not authorised.
1732085906: New connection from 172.19.0.9:54434 on port 1883.
1732085906: Client fems-realtime-api-39 disconnected, not authorised.
1732085907: New connection from 172.19.0.9:54446 on port 1883.
1732085907: Client fems-realtime-api-39 disconnected, not authorised.
1732085908: New connection from 172.19.0.9:54456 on port 1883.
1732085908: Client fems-realtime-api-39 disconnected, not authorised.
1732085909: New connection from 172.19.0.9:54472 on port 1883.
1732085909: Client fems-realtime-api-39 disconnected, not authorised.
1732085910: New connection from 172.19.0.9:54474 on port 1883.
1732085910: Client fems-realtime-api-39 disconnected, not authorised.
1732085911: New connection from 172.19.0.9:54482 on port 1883.
1732085911: Client fems-realtime-api-39 disconnected, not authorised.
1732085912: New connection from 172.19.0.9:54494 on port 1883.
1732085912: Client fems-realtime-api-39 disconnected, not authorised.
1732085913: New connection from 172.19.0.9:54504 on port 1883.
1732085913: Client fems-realtime-api-39 disconnected, not authorised.
1732085914: New connection from 172.19.0.9:54512 on port 1883.
1732085914: Client fems-realtime-api-39 disconnected, not authorised.
1732085915: New connection from 172.19.0.9:39442 on port 1883.
1732085915: Client fems-realtime-api-39 disconnected, not authorised.
1732085916: New connection from 172.19.0.9:39454 on port 1883.
1732085916: Client fems-realtime-api-39 disconnected, not authorised.
1732085917: New connection from 172.19.0.9:39470 on port 1883.
1732085917: Client fems-realtime-api-39 disconnected, not authorised.