1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add pure-ftpd

This commit is contained in:
kev 2015-06-09 22:45:42 +08:00
parent 189a674d30
commit 5497301f8f
3 changed files with 30 additions and 2 deletions

View File

@ -4,6 +4,8 @@ opencart:
- "8000:80"
links:
- mysql
volumes:
- /var/www/html
restart: always
mysql:

22
pure-ftpd/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
#
# Dockerfile for pure-ftpd
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update && apt-get install -y pure-ftpd vim-tiny && rm -rf /var/lib/apt/lists/*
RUN groupadd ftpgroup && useradd -g ftpgroup -s /bin/bash -m ftpuser
ENV PURE_PASSWDFILE /etc/pure-ftpd/pureftpd.passwd
ENV PURE_DBFILE /etc/pure-ftpd/pureftpd.pdb
ENV MAXCLIENTSPERIP 2
ENV USERBANDWIDTH 1024:1024
EXPOSE 21
VOLUME /home/ftpuser
CMD pure-ftpd --login puredb:$PURE_DBFILE \
--maxclientsperip $MAXCLIENTSPERIP \
--userbandwidth $USERBANDWIDTH \
--createhomedir

View File

@ -1,9 +1,13 @@
splash:
image: vimagick/splash
command: --maxrss 4000
command: --maxrss 4096
ports:
- "8050:8050"
- "8051:8051"
- "5023:5023"
mem_limit: 4.5G
volumes:
- ./splash/proxy-profiles:/etc/splash/proxy-profiles
- ./splash/js-profiles:/etc/splash/js-profiles
- ./splash/filters:/etc/splash/filters
mem_limit: 4500M
restart: always