FROM debian:latest
ENV DEBIAN_FRONTEND=noninteractive
ENV AUTOSSH_DEBUG=1
ENV AUTOSSH_LOGFILE=/root/log/autossh_log_file.log
RUN apt-get update && apt-get upgrade -y && apt-get install -y autossh
RUN mkdir /root/.ssh /root/log
CMD [ "autossh \
	-R nextcloud.lan.ddnsgeek.com:80:localhost:8083 \
	-R nextcloud.lan.ddnsgeek.com:443:localhost:4433 \
	-R passbolt.lan.ddnsgeek.com:443:localhost:4432 \
	-R passbolt.lan.ddnsgeek.com:80:localhost:8082 \
	-R webdav.lan.ddnsgeek.com:80:localhost:8080 \
	-R searxng.lan.ddnsgeek.com:80:localhost:8081 \
	-E /home/wayne/ssh_log_file.log \
	-o ServerAliveInterval 10 -o ServerAliveCountMax 3 \
	-i /home/wayne/.ssh/id_rsa -N -f serveo.net" ]

