switched to key-based auth for SSH, added docs

This commit is contained in:
marlon
2025-01-25 18:51:02 -05:00
parent 29c4030009
commit ba1c22690b
3 changed files with 17 additions and 11 deletions

View File

@ -8,11 +8,8 @@ services:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- PASSWORD_ACCESS=true
- USER_PASSWORD_FILE=/run/secrets/ssh_password
- USER_NAME=sftp
secrets:
- ssh_password
- PUBLIC_KEY
volumes:
- content:/content:rw
ports:
@ -36,11 +33,6 @@ services:
- content:/content:rw
entrypoint: [ "bash", "-c", "sleep 10 && chown -R 1000:1000 /content"]
secrets:
ssh_password:
external: true
name: ${STACK_NAME}_ssh_password_${SECRET_SSH_PASSWORD_VERSION}
volumes:
content: