first commit from PC
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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" ]
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
version: "3"
|
||||
services:
|
||||
server:
|
||||
hostname: autossh.sweet.home
|
||||
image: farmcoolcow/autossh
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: Dockerfile
|
||||
# volumes:
|
||||
# - .:/etc/unbound/unbound.conf.d
|
||||
restart: always
|
||||
# network_mode: host
|
||||
# privileged: true
|
||||
labels:
|
||||
- "io.portainer.accesscontrol.public"
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
command:
|
||||
- -R nextcloud.lan.ddnsgeek.com:80:localhost:8083 \
|
||||
-E /home/wayne/ssh_log_file.log" \
|
||||
-o "ServerAliveInterval 10" \
|
||||
-o "ServerAliveCountMax 3" \
|
||||
-i /home/wayne/.ssh/id_rsa \
|
||||
-N -f serveo.net
|
||||
environment:
|
||||
- AUTOSSH_DEBUG=1
|
||||
- AUTOSSH_LOGFILE=/home/wayne/autossh_log_file.log
|
||||
volumes:
|
||||
- ./install:/install
|
||||
Reference in New Issue
Block a user