forked from stilliard/docker-pure-ftpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (32 loc) · 1010 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.5'
# Usage example: https://github.com/stilliard/docker-pure-ftpd/wiki/Docker-stack-with-Wordpress-&-FTP
services:
ftpd_server:
image: cashstory/pureftpd-api
container_name: pureftpd-api
ports:
- "21:21"
- "30000-30099:30000-30099"
- "5000:5000"
volumes: # remember to replace /folder_on_disk/ with the path to where you want to store the files on the host machine
- ftpusers_home:/home/ftpusers
- ftpusers_conf:/etc/pure-ftpd
# uncomment for ssl/tls, see https://github.com/stilliard/docker-pure-ftpd#tls
# - "/folder_on_disk/ssl:/etc/ssl/private/"
environment:
- PUBLICHOST="localhost"
- FTP_USER_NAME=username
- FTP_USER_PASS=mypass
- FTP_USER_HOME=/home/username
- X_API_KEY=75ea1ee78274
- TZ=Europe/Paris
- ADDED_FLAGS=--tls=1
- TLS_CN=localhost
- TLS_ORG=TEST
- TLS_C=FR
restart: always
volumes:
ftpusers_home:
driver: local
ftpusers_conf:
driver: local