Code Monkey home page Code Monkey logo

dev-pureftpd's Introduction

dev-pureftpd

PureFTPd service for development and testing purposes.

Prerequisites

Install Docker and Docker Compose.

The logging driver is set to local.
Follow this guide to configure the docker daemon to use the local file logging driver.

Configuration

To set a custom configuration create a file in ~/.config/docker-dev-tools/dev-pureftpd/settings.env and add the variables to override.

Use ./servicectl.sh info for the list of available variables and their values.

When setting paths, always use the unix slash / even on Windows.

Note: ~ is an alias for the user's home directory.

  • Linux: /home/<username>
  • macOS: /Users/<username>
  • Windows: C:/Users/<username>

The ${HOME} variable is also available but can lead to compatibility issues, especially on Windows.

Data persistence

By default the persistence directory is set to ~/.local/share/docker-dev-tools/dev-pureftpd.

Any custom directory should be set in a path inside the user's home directory. Setting it outside is not supported and, depending on the host platform, may not work.

There's no need to manually create directory, Docker Compose will take care if it.

Usage

To manage the service, execute ./servicectl.sh <command>.

Command Arguments Description
up Bring up the service.
down Bring down the service.
prune Bring down the service and delete the data.
info Show informations about the service: name, config, status.
logs Show service's logs, takes the same arguments as docker compose logs.
useradd <name> [directory] Create a new user identified by <name> with access to [directory]. If [directory] is not specified, a directory <name> will be created.
userdel <name> Delete the user identified by <name>.
userlist List all users and their home directories.

Host

On Linux and macOS the services are available at localhost.

On Windows the services are available at the virtual machine's ip. Usually 192.168.99.100, can be inspected with docker-machine ip.

Default ports

Type Application Default port
FTP server pureftpd 21
FTP passive ports pureftpd 30000-30100

Default accounts

There are no default accounts configured.

Create one with the useradd command.

dev-pureftpd's People

Contributors

riccardopedrielli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.