Skip to content

Instantly share code, notes, and snippets.

@wujku
Last active January 5, 2022 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wujku/8fd9fb541d9004dd68c7b23b36b6f246 to your computer and use it in GitHub Desktop.
Save wujku/8fd9fb541d9004dd68c7b23b36b6f246 to your computer and use it in GitHub Desktop.
Simple local FTP by pure-ftpd
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