Skip to content

Instantly share code, notes, and snippets.

@bluetoothfx
Last active August 15, 2020 08:57
Show Gist options
  • Select an option

  • Save bluetoothfx/0890109e2e84fdca3a982892ed0a3c17 to your computer and use it in GitHub Desktop.

Select an option

Save bluetoothfx/0890109e2e84fdca3a982892ed0a3c17 to your computer and use it in GitHub Desktop.

Revisions

  1. bluetoothfx renamed this gist Aug 15, 2020. 1 changed file with 0 additions and 0 deletions.
  2. bluetoothfx created this gist Aug 15, 2020.
    27 changes: 27 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    version: '2'

    # Usage example: https://github.com/stilliard/docker-pure-ftpd/wiki/Docker-stack-with-Wordpress-&-FTP
    # repo: https://github.com/stilliard/docker-pure-ftpd

    services:
    ftpd_server:
    image: stilliard/pure-ftpd
    container_name: pure-ftpd
    ports:
    - "1700:21"
    - "30000-30099:30000-30099"
    volumes: # remember to replace /folder_on_disk/ with the path to where you want to store the files on the host machine
    - "/home/ftpfiles/data:/home/linuxftp/"
    - "./passwd:/etc/pure-ftpd/passwd"
    # uncomment for ssl/tls, see https://github.com/stilliard/docker-pure-ftpd#tls
    # - "/folder_on_disk/ssl:/etc/ssl/private/"
    environment:
    PUBLICHOST: "YOUR.SERVER.IP.ADDRESS"
    FTP_USER_NAME: linuxftp
    FTP_USER_PASS: mystrongpass123
    FTP_USER_HOME: /home/linuxftp
    FTP_MAX_CLIENTS: 50
    FTP_PASSIVE_PORTS: 30000:30099
    # also for ssl/tls:
    # ADDED_FLAGS: "--tls=2"
    restart: always