tunneller icon indicating copy to clipboard operation
tunneller copied to clipboard

Created a ready to run docker image

Open harlev opened this issue 5 years ago • 3 comments

I needed to create an easy to deploy instance for myself.
I spent some time creating a docker image which already contains the Mosquitto queue installed and configured.

Decided to share it so everyone could use it at https://hub.docker.com/r/harlev/tunneller

harlev avatar Feb 24 '20 20:02 harlev

@harlev thanks for sharing this. Any chance you have a Dockerfile for it?

mikemilano avatar Apr 01 '20 19:04 mikemilano

@mikemilano

FROM golang:buster
WORKDIR /app
COPY . /app

RUN apt-get update
RUN apt-get install mosquitto -y
RUN apt-get install mosquitto-clients -y
COPY acl.conf /etc/mosquitto/conf.d/acl.conf
COPY acl.txt /etc/mosquitto/conf.d/acl.txt

RUN go install

EXPOSE 1883
ENTRYPOINT ["sh", "start.sh"]

start.sh:

mosquitto -d
tunneller serve -host 0.0.0.0

harlev avatar Apr 01 '20 19:04 harlev

@harlev made my day, thank you!

mikemilano avatar Apr 01 '20 19:04 mikemilano