Files
appServerTunnelhead/docker-compose.yaml
2025-12-27 20:34:15 +01:00

26 lines
1.1 KiB
YAML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
openssh-server:
image: ghcr.io/linuxserver/openssh-server:latest
container_name: tunnelConnector
hostname: openssh-server
network_mode: host
ports:
- "2222:2222" # publish containers 2222 to host 2222
- "9000:9000" # publish containers 9000 (for reverse tunnel)
environment:
- PUID=1000 # set to your user id on the host
- PGID=1000 # set to your group id on the host
- TZ=Europe/Zurich # or your timezone
- PASSWORD_ACCESS=false
- USER_NAME=tunnel # optional: set a custom SSH username (default: linuxserver.io)
- SUDO_ACCESS=false # optional: set true to grant sudo (consider security)
volumes:
# Persisted config folder (recommended by the image)
- ./server:/config
# Explicit (and clear) one-file mounts; keep them for readability/intent
#- ./server/sshd_config:/config/ssh/sshd_config:ro
#- ./server/authorized_keys:/config/.ssh/authorized_keys:ro
restart: unless-stopped