Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thueske committed Feb 25, 2024
1 parent 56d30a3 commit 3f41239
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SFTP_USERNAME=
SFTP_PASSWORD=
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.env
.idea
.idea
publickeys/*
!publickeys/README.md
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ services:
restart: unless-stopped
volumes:
- sftp_keys:/etc/ssh
- app_data:/home/${SFTP_USERNAME}/data
- $PWD/publickeys:/home/${SFTP_USERNAME}/.ssh/keys:ro
ports:
- "2223:22"
networks:
default:
# Empty password = only allow publickeys
command: ${SFTP_USERNAME}:${SFTP_PASSWORD}:1000
ulimits:
nofile:
soft: 65536
hard: 65536
hard: 65536

volumes:
sftp_keys:
app_data:
1 change: 1 addition & 0 deletions publickeys/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# All public ssh keys will be imported to authorized_keys

0 comments on commit 3f41239

Please sign in to comment.