Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server.
96
How to use this image Mounting project $ docker run --name some-name -d xylphid/pure-ftpd:1-alpine
Exposing external port $ docker run --name some-name -v /path/to/projet:/app -p 21:21 -d xylphid/pure-ftpd:1-alpine Then you can hit ftp://localhost/ or ftp://host-ipin your explorator.
How to compose with this image version: "3.7" services: pureftp: image: xylphid/pure-ftpd:1.0.46-alpine container_name: pureftp hostname: pureftp networks: traefik: dns: - 192.168.1.1 environment: DEFAULT_USR: $FTPUSER DEFAULT_PWD: $FTPPASS DEFAULT_ROOT: "/opt/pure/datas/" FTP_CLIENTS: 50 FTP_CONNECTIONS: 10 ports: - "21:21" volumes: - /data/unionfs:/data :/opt/pure/datas/ :/opt/pure/secure/ labels: traefik.enable: "true" traefik.docker.network: traefik traefik.backend: pureftp traefik.protocol: http traefik.port: 21 traefik.frontend.rule: Host:pureftp${DOMAINNAME}, traefik.frontend.auth.forward.address: http://traefik-forward-auth:4181 traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User traefik.frontend.auth.forward.trustForwardHeader: "true" traefik.frontend.passHostHeader: "true" traefik.frontend.headers.SSLForceHost: "true" traefik.frontend.headers.SSLHost: pureftp.${DOMAINNAME} traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.browserXSSFilter: "true" traefik.frontend.headers.contentTypeNosniff: "true" traefik.frontend.headers.forceSTSHeader: "true" traefik.frontend.headers.STSSeconds: 315360000 traefik.frontend.headers.STSIncludeSubdomains: "true" traefik.frontend.headers.STSPreload: "true" traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex traefik.frontend.headers.frameDeny: "true" traefik.frontend.headers.customFrameOptionsValue: 'allow-from https://${DOMAINNAME}' restart: always
Environments Here are supported environments variable and its definition :
DEFAULT_USR : Default user name. Will create a new user if set. DEFAULT_PWD : Default user password. Used if DEFAULT_USR is set. DEFAULT_ROOT : Root directory for user home Persistent data To make your data persistent, you will need to mount this volumes :
/opt/pure/datas/ : root directory for virtual users /opt/pure/secure/ : âssword DB directory How to create new users Connect to the container shell : docker exec -it some-name /bin/sh
You can create new users using the pure-pw built-in command : pure-pw useradd [username] -u pure -d /opt/pure/datas/[username]
Options explained :
-u : Uid -d : Home directory. Make sure the directory exists. You can find more options in the usage message.
Quick reference Pure-FTPd Documentation Image inheritance This docker image inherits from alpine:3.6 image.
Content type
Image
Digest
Size
8.8 MB
Last updated
about 7 years ago
docker pull artiume/pure-ftpd:1.0