mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 06:28:23 +01:00
add pure-ftpd
This commit is contained in:
@@ -4,6 +4,8 @@ opencart:
|
|||||||
- "8000:80"
|
- "8000:80"
|
||||||
links:
|
links:
|
||||||
- mysql
|
- mysql
|
||||||
|
volumes:
|
||||||
|
- /var/www/html
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
|
|||||||
22
pure-ftpd/Dockerfile
Normal file
22
pure-ftpd/Dockerfile
Normal 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
|
||||||
@@ -1,9 +1,13 @@
|
|||||||
splash:
|
splash:
|
||||||
image: vimagick/splash
|
image: vimagick/splash
|
||||||
command: --maxrss 4000
|
command: --maxrss 4096
|
||||||
ports:
|
ports:
|
||||||
- "8050:8050"
|
- "8050:8050"
|
||||||
- "8051:8051"
|
- "8051:8051"
|
||||||
- "5023:5023"
|
- "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
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user