Fix OpenSSH perm issues

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2024-09-16 22:09:00 +02:00
parent fb8d683f9f
commit f25a6fdb32

View File

@ -11,8 +11,8 @@ services:
env_file: env_file:
- ./openssh/env/openssh.env - ./openssh/env/openssh.env
environment: environment:
- PUID=0 - PUID=${PUID:-1000}
- PGID=0 - PGID=${PGID:-1000}
volumes: volumes:
- openssh_config:/config - openssh_config:/config
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro - ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
@ -25,7 +25,7 @@ services:
networks: networks:
- infra-network - infra-network
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:false
ports: ports:
- 2222:2222 - 2222:2222
volumes: volumes: