30 lines
852 B
YAML
30 lines
852 B
YAML
|
|
services:
|
|
reverse-tunnel:
|
|
image: alpine:latest
|
|
container_name: appRobot_Tunnel
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Zurich
|
|
volumes:
|
|
- /home/webhost/Documents/Docker/appRobotTools/.ssh:/root/.ssh:ro
|
|
command: >
|
|
/bin/sh -c "
|
|
apk add --no-cache openssh-client autossh &&
|
|
autossh -M 0 -N -o StrictHostKeyChecking=no \
|
|
-i /root/.ssh/id_rsa_client \
|
|
-o StrictHostKeyChecking=no \
|
|
-o ServerAliveInterval=60 \
|
|
-o ServerAliveCountMax=10 \
|
|
-o ExitOnForwardFailure=yes \
|
|
-N \
|
|
-R 0.0.0.0:9943:portainer:9443 \
|
|
-R 0.0.0.0:9900:portainer:9000 \
|
|
-R 8948:localhost:8448 \
|
|
-R 8943:localhost:8443 \
|
|
-R 9494:localhost:8080 \
|
|
-R 0.0.0.0:9222:informatikweb.local:22 \
|
|
tunnel@server.schooltech.ch -p 2255
|
|
"
|
|
|