1
0

🏗️」 wip: Started ftp docker

This commit is contained in:
2025-03-01 17:38:17 +01:00
parent 1004dba659
commit d82f107bd6
8 changed files with 97 additions and 2 deletions

View File

@ -9,3 +9,14 @@ services:
- TZ=Europe/Paris
- NGINX_SSL_KEY_FILE=/etc/nginx/ssl/kanel-wp.key
- NGINX_SSL_CERT_FILE=/etc/nginx/ssl/kanel-wp.crt
ftp:
build: vsftp
ports:
- 2100:21
- 30000-30100:30000-30100
depends_on:
nginx:
condition: service_started
wordpress-php:
condition: service_healthy

View File

@ -2,7 +2,6 @@ FROM inception-nginx
LABEL maintainer="KeyZox"
COPY kanelovh/ /var/www/html/
COPY --chmod=644 www.conf.template /etc/nginx/templates/www.conf.template
COPY --chmod=644 cert.sh /docker-entrypoint.d/

View File

@ -0,0 +1,11 @@
FROM inception-nginx
LABEL maintainer="KeyZox"
LABEL version="0.1"
RUN apk add vsftpd
EXPOSE 21
EXPOSE 30000-30100
CMD [ "vsftpd" ]

View File

@ -0,0 +1,25 @@
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
ftpd_banner=Welcome to your WordPress FTP server.
chroot_local_user=YES
allow_writeable_chroot=YES
user_sub_token=$USER
local_root=/var/www/wordpress
listen=YES
listen_port=21
listen_address=0.0.0.0
seccomp_sandbox=NO
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=30100
userlist_enable=YES
userlist_file=/etc/vsftpd/vsftpd.userlist
userlist_deny=NO