docker-compose.yaml aktualisiert
This commit is contained in:
@@ -1,25 +1,24 @@
|
|||||||
|
services:
|
||||||
services:
|
openssh-server:
|
||||||
openssh-server:
|
image: ghcr.io/linuxserver/openssh-server:latest
|
||||||
image: ghcr.io/linuxserver/openssh-server:latest
|
container_name: tunnelConnector
|
||||||
container_name: tunnelConnector
|
hostname: openssh-server
|
||||||
hostname: openssh-server
|
network_mode: host
|
||||||
network_mode: host
|
ports:
|
||||||
ports:
|
- "2222:2222" # publish container s 2222 to host 2222
|
||||||
- "2222:2222" # publish container’s 2222 to host 2222
|
- "9000:9000" # publish container s 9000 (for reverse tunnel)
|
||||||
- "9000:9000" # publish container’s 9000 (for reverse tunnel)
|
|
||||||
|
environment:
|
||||||
environment:
|
- PUID=1000 # set to your user id on the host
|
||||||
- PUID=1000 # set to your user id on the host
|
- PGID=1000 # set to your group id on the host
|
||||||
- PGID=1000 # set to your group id on the host
|
- TZ=Europe/Zurich # or your timezone
|
||||||
- TZ=Europe/Zurich # or your timezone
|
- PASSWORD_ACCESS=false
|
||||||
- PASSWORD_ACCESS=false
|
- USER_NAME=tunnel # optional: set a custom SSH username (default: linuxserver.io)
|
||||||
- USER_NAME=tunnel # optional: set a custom SSH username (default: linuxserver.io)
|
- SUDO_ACCESS=false # optional: set true to grant sudo (consider security)
|
||||||
- SUDO_ACCESS=false # optional: set true to grant sudo (consider security)
|
volumes:
|
||||||
volumes:
|
# Persisted config folder (recommended by the image)
|
||||||
# Persisted config folder (recommended by the image)
|
- ./server:/config
|
||||||
- ./server:/config
|
# Explicit (and clear) one-file mounts; keep them for readability/intent
|
||||||
# Explicit (and clear) one-file mounts; keep them for readability/intent
|
#- ./server/sshd_config:/config/ssh/sshd_config:ro
|
||||||
#- ./server/sshd_config:/config/ssh/sshd_config:ro
|
#- ./server/authorized_keys:/config/.ssh/authorized_keys:ro
|
||||||
#- ./server/authorized_keys:/config/.ssh/authorized_keys:ro
|
restart: unless-stopped
|
||||||
restart: unless-stopped
|
|
||||||
|
|||||||
Reference in New Issue
Block a user