Files
docker-registry-keese/docker-compose.yml
2023-11-29 13:25:48 +01:00

33 lines
1.2 KiB
YAML

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