File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
- version : ' 3.4'
2
-
3
1
services :
4
2
web :
5
3
image : webdevops/php-nginx:8.0-alpine
@@ -49,6 +47,8 @@ services:
49
47
- MYSQL_PASSWORD=pure
50
48
networks :
51
49
- pureftpd
50
+ ports :
51
+ - 3306:3306
52
52
53
53
54
54
networks :
Original file line number Diff line number Diff line change 1
- FROM debian:stretch -slim
1
+ FROM debian:bookworm -slim
2
2
3
3
# tell debian we want as less interaction as possible
4
4
ENV DEBIAN_FRONTEND noninteractive
@@ -11,7 +11,7 @@ RUN apt-get update && \
11
11
apt-get -y install rsyslog && \
12
12
# download, configure and compile pure-ftpd
13
13
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 && \
15
15
tar xvzpf pure-ftpd-1*.tar.gz && \
16
16
cd pure-ftpd-1* && \
17
17
./configure --with-mysql --with-tls --with-altlog && \
Original file line number Diff line number Diff line change 1
- version : ' 3.4'
2
-
3
1
services :
4
2
web :
5
3
image : lextira/pureftpd-api
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ Adjust the `.env`-file to your environment.
23
23
24
24
Get the initial certificates (from letsencrypt staging environment). This must succeed before you can continue!
25
25
```
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
28
28
```
29
29
30
30
Start the application
@@ -34,7 +34,7 @@ docker compose up -d web ftp
34
34
35
35
Finally, create the database structure
36
36
```
37
- docker compose exec web /usr/bin/ php artisan migrate --force
37
+ docker compose exec web php artisan migrate --force
38
38
```
39
39
40
40
Your server is now up and running. You should create a cronjob for renewing the certificates.
You can’t perform that action at this time.
0 commit comments