Skip to content

Commit

Permalink
Merge pull request #13 from lextira/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
kohlerdominik committed Dec 3, 2019
2 parents 0a31a63 + 5c798ad commit 908b6ee
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
20 changes: 10 additions & 10 deletions config-example/pureftpd/pureftpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,21 @@ TLS 1


# Certificate file, for TLS
# The certificate itself and the keys can be bundled into the same
# file or split into two files.
# CertFile is for a cert+key bundle, CertFileAndKey for separate files.
# Use only one of these.

CertFile /etc/ssl/private/pureftpd.pem
# CertFileAndKey "/etc/pure-ftpd.pem" "/etc/pure-ftpd.key"



# Unix socket of the external certificate handler, for TLS

# ExtCert /var/run/ftpd-certs.sock


# Listen only to IPv4 addresses in standalone mode (ie. disable IPv6)
# By default, both IPv4 and IPv6 are enabled.

Expand All @@ -447,13 +457,3 @@ CertFile /etc/ssl/private/pureftpd.pem
# By default, both IPv4 and IPv6 are enabled.

# IPV6Only yes



# UTF-8 support for file names (RFC 2640)
# Set the charset of the server filesystem and optionally the default charset
# for remote clients that don't use UTF-8.
# Works only if pure-ftpd has been compiled with --with-rfc2640

# FileSystemCharset big5
# ClientCharset big5
2 changes: 1 addition & 1 deletion ftp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apt-get update && \
apt-get -y install libmariadb-dev && \
# download, configure and compile pure-ftpd
mkdir /usr/src/pure-ftpd && cd /usr/src/pure-ftpd && \
wget https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.47.tar.gz && \
wget https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.49.tar.gz && \
tar xvzpf pure-ftpd-1*.tar.gz && \
cd pure-ftpd-1* && \
./configure --with-mysql --with-tls --with-altlog && \
Expand Down
16 changes: 16 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ As pureftpd runs in a docker-container, it doesn't know it's public address. You
ForcePassiveIP 1.2.3.4
```

## Upgrade in Production
It's easy to upgrade containers with short downtime. You can do it for all containers at once, but it's
recommended to do it step by step.

First, if you changed your docker-compose file to use fixed version for images, update those.

Then, pull the desired version and restart the container: `docker-compose pull {service} && docker-compose up --no-deps -d {service}
`

```
docker-compose pull web && docker-compose up --no-deps -d web
docker-compose pull ftp && docker-compose up --no-deps -d ftp
docker-compose pull db && docker-compose up --no-deps -d db
```

## Manage the server

Expand Down

0 comments on commit 908b6ee

Please sign in to comment.