documentation

This commit is contained in:
Wolfgang Hottgenroth
2022-09-14 14:19:01 +02:00
parent 3bf3b037f2
commit 35541e6fdc
4 changed files with 60 additions and 21 deletions

View File

@ -10,7 +10,7 @@ ARG MOSQ_GID="1883"
RUN \
apt update && \
apt install -y mariadb-client openssl libwebsockets-dev certbot bash cron supervisor vim-tiny && \
apt install -y mariadb-client openssl libwebsockets-dev certbot bash cron supervisor vim-tiny procps net-tools && \
update-alternatives --set editor /usr/bin/vim.tiny && \
update-alternatives --set vi /usr/bin/vim.tiny && \
groupadd -r -g $MOSQ_GID $MOSQ_USER && \
@ -23,7 +23,7 @@ COPY etc/ /opt/etc
COPY supervisor-mosquitto.conf /etc/supervisor/conf.d/
COPY crontab /etc/
COPY mosquitto.conf-sample /opt/etc/mosquitto/
COPY cert-deploy.sh /opt/sbin/
COPY cert-deploy.sh /opt/bin/
VOLUME /opt/etc
VOLUME /opt/data
@ -38,5 +38,6 @@ EXPOSE 9001/tcp
WORKDIR /opt
CMD /usr/bin/openssl dhparam -out /opt/etc/mosquitto/dh.pem 2048 && /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]