1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-08 04:04:42 +02:00

add flashmq

This commit is contained in:
kev 2024-07-08 18:59:25 +08:00
parent c969de6b06
commit adc434ac51
5 changed files with 52 additions and 0 deletions

View File

@ -58,6 +58,7 @@ A collection of delicious docker recipes.
## IoT
- [x] ~hass~
- [x] flashmq
- [x] hbdg
- [x] node-red :+1:
- [x] mqtt-io-arm

29
flashmq/Dockerfile Normal file
View File

@ -0,0 +1,29 @@
#
# Dockerfile for flashmq
#
FROM debian:12
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt update -y \
&& apt install -y --no-install-recommends apt-utils ca-certificates curl gpg \
&& update-ca-certificates -f \
&& curl -sSL https://www.flashmq.org/wp-content/uploads/2021/10/flashmq-repo.gpg \
| gpg --dearmor \
| tee /usr/share/keyrings/flashmq-repo.gpg > /dev/null \
&& echo 'deb [signed-by=/usr/share/keyrings/flashmq-repo.gpg] http://repo.flashmq.org/apt bookworm main' \
| tee /etc/apt/sources.list.d/flashmq.list \
&& apt update -y \
&& apt download -y flashmq \
&& dpkg -c flashmq_*.deb \
&& dpkg -x flashmq_*.deb flashmq \
&& mv flashmq/usr/bin/flashmq /usr/bin/ \
&& flashmq --version \
&& apt remove -y curl gpg \
&& rm -rf /var/lib/apt/lists/* flashmq_*.deb flashmq
EXPOSE 1883
ENTRYPOINT ["flashmq"]
CMD ["--config-file", "/etc/flashmq/flashmq.conf"]

7
flashmq/README.md Normal file
View File

@ -0,0 +1,7 @@
flashmq
=======
[FlashMQ][1] is a multi-threaded fast lightweight MQTT broker. It’s written in C++,
using mostly POSIX (Linux) APIs, as an event-driven multi-core state machine.
[1]: https://www.flashmq.org/

View File

@ -0,0 +1,4 @@
# https://www.flashmq.org/documentation/config-file/
log_file /var/log/flashmq/flashmq.log
storage_dir /var/lib/flashmq

View File

@ -0,0 +1,11 @@
version: "3.8"
services:
flashmq:
image: vimagick/flashmq
ports:
- "1883:1883"
volumes:
- ./data/etc:/etc/flashmq
- ./data/log:/var/log/flashmq
- ./data/var:/var/lib/flashmq
restart: unless-stopped