This commit is contained in:
zino
2023-11-29 13:25:48 +01:00
parent 6825b5da4f
commit 659fbc9de0
7 changed files with 155 additions and 1 deletions

32
docker-compose.yml Normal file
View File

@@ -0,0 +1,32 @@
version: "3"
services:
registry:
container_name: registry
restart: always
image: registry:2
ports:
- 5000:5000
volumes:
- /mnt/NASbarracuda1TB/keese/registry:/var/lib/registry
autossh:
container_name: autossh-keese-registry
restart: always
image: jnovack/autossh
network_mode: host
depends_on:
- registry
volumes:
- ./ssh/id_rsa:/id_rsa
environment:
- AUTOSSH_GATETIME=0
- PubkeyAuthentication=yes
- StrictHostKeyChecking=false
- PasswordAuthentication=no
- SSH_SERVER_ALIVE_INTERVAL=30
- ExitOnForwardFailure=yes
- SSH_REMOTE_USER=autotunnel
- SSH_REMOTE_HOST=arwing.zinomedia.de
- SSH_REMOTE_PORT=1337
- SSH_TUNNEL_PORT=8060 # incoming port on remote server
- SSH_TARGET_PORT=5000 # port of application to forward