Skip to content

Commit f334f47

Browse files
committed
Soft modernize
1 parent 986f360 commit f334f47

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

development.docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.4'
2-
31
services:
42
web:
53
image: webdevops/php-nginx:8.0-alpine
@@ -49,6 +47,8 @@ services:
4947
- MYSQL_PASSWORD=pure
5048
networks:
5149
- pureftpd
50+
ports:
51+
- 3306:3306
5252

5353

5454
networks:

ftp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch-slim
1+
FROM debian:bookworm-slim
22

33
# tell debian we want as less interaction as possible
44
ENV DEBIAN_FRONTEND noninteractive
@@ -11,7 +11,7 @@ RUN apt-get update && \
1111
apt-get -y install rsyslog && \
1212
# download, configure and compile pure-ftpd
1313
mkdir /usr/src/pure-ftpd && cd /usr/src/pure-ftpd && \
14-
wget https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.49.tar.gz && \
14+
wget https://download.pureftpd.org/pub/pure-ftpd/releases/obsolete/pure-ftpd-1.0.49.tar.gz && \
1515
tar xvzpf pure-ftpd-1*.tar.gz && \
1616
cd pure-ftpd-1* && \
1717
./configure --with-mysql --with-tls --with-altlog && \

production.docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.4'
2-
31
services:
42
web:
53
image: lextira/pureftpd-api

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Adjust the `.env`-file to your environment.
2323

2424
Get the initial certificates (from letsencrypt staging environment). This must succeed before you can continue!
2525
```
26-
source .env && docker run -ti --rm -v $TLS_CERT_DIR:/etc/letsencrypt/ -p 80:80 webdevops/certbot \
27-
/usr/bin/certbot certonly --staging --force-renewal --noninteractive --agree-tos --standalone --preferred-challenges http -d $CERTBOT_DOMAIN -m $CERTBOT_EMAIL
26+
source .env && docker compose run -ti --rm -p 80:80 certbot \
27+
certonly --staging --force-renewal --noninteractive --agree-tos --standalone --preferred-challenges http -d $CERTBOT_DOMAIN -m $CERTBOT_EMAIL
2828
```
2929

3030
Start the application
@@ -34,7 +34,7 @@ docker compose up -d web ftp
3434

3535
Finally, create the database structure
3636
```
37-
docker compose exec web /usr/bin/php artisan migrate --force
37+
docker compose exec web php artisan migrate --force
3838
```
3939

4040
Your server is now up and running. You should create a cronjob for renewing the certificates.

0 commit comments

Comments
 (0)