Last active
January 5, 2022 10:20
-
-
Save wujku/8fd9fb541d9004dd68c7b23b36b6f246 to your computer and use it in GitHub Desktop.
Simple local FTP by pure-ftpd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
# Run after run container: | |
# Create user wujku which runs as the FTP system user. By default, the user will be chrooted to /home/ftpuser. | |
# $ docker exec -it pure-ftpd pure-pw useradd wujku -u ftpuser -d /home/ftpuser -m | |
# Update the database using the command | |
# $ docker exec -it pure-ftpd pure-pw mkdb | |
services: | |
ftpd_server: | |
image: gists/pure-ftpd | |
container_name: pure-ftpd | |
ports: | |
- "21:21" | |
- "30000-30009:30000-30009" | |
volumes: | |
- /Users/wujku/FTP:/home/ftpuser | |
- ./pureftpd:/etc/pureftpd | |
environment: | |
PUBLICHOST: "localhost" | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment