https://github.com/stilliard/docker-pure-ftpd/blob/master/README.md
version: ‘3.3’
services:
nginx:
image: nginx:latest
ports:
– ’80:80′
volumes:
– ./nginx:/etc/nginx/conf.d
– ./logs/nginx:/var/log/nginx
– ./wordpress:/var/www/html/demo
– ./ideaitweb:/var/www/html/ideaitweb.com
– ./colorsky:/var/www/html/colorsky.ca
– ./arj:/var/www/html/arj.ca
– ./arj:/home/bob
links:
– wordpress
– wordpress-2
– colorsky
– arj
– ftpd_server
restart: always
wordpress:
image: wordpress:6.1-php7.4-fpm
volumes:
– ./wordpress:/var/www/html/demo
– ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
environment:
– WORDPRESS_DB_HOST=mysql
– WORDPRESS_DB_NAME=Ideaitdb
– WORDPRESS_DB_USER=ideaitsuser
– WORDPRESS_DB_PASSWORD=Ideaitaqwe123
restart: always
wordpress-2:
image: wordpress:6.2.0-php8.0-fpm
volumes:
– ./ideaitweb:/var/www/html/ideaitweb.com
restart: always
colorsky:
image: wordpress:6.1-php7.4-fpm
volumes:
– ./colorsky:/var/www/html/colorsky.ca
– ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
restart: always
arj:
image: wordpress:6.1-php7.4-fpm
volumes:
– ./arj:/var/www/html/arj.ca
– ./arj-uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
restart: always
ftpd_server:
image: stilliard/pure-ftpd
container_name: pure-ftpd
ports:
– “21:21”
– “30000-30009:30000-30009”
volumes: # remember to replace /folder_on_disk/ with the path to where you want to store the files on the host machine
#- .pureftpd/user/data:/home/bob/
– ./arj:/home/bob/
– ./pureftpd/user/passwd:/etc/pure-ftpd/passwd
environment:
PUBLICHOST: “localhost”
FTP_USER_NAME: bob
FTP_USER_PASS: Ideait2023
FTP_USER_HOME: /home/bob
# also for ssl/tls:
# ADDED_FLAGS: “–tls=2”
restart: always
links:
– arj
volumes:
ftpdata: