-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose_template.yml
42 lines (39 loc) · 1.52 KB
/
docker-compose_template.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
36
37
38
39
40
41
42
############################################################
# Launcher for vsFTPd container
# This is a template, the following values must be replaced:
# - $${INSTANCE_NAME}, name for the instance
# - $${FTP_USER}, name for FTP user
# - $${FTP_PASS}, password for FTP user
# - $${INSTANCE_PORT_1}, port number for FTP instance
# - $${ONLY_UPLOAD}, YES/NO. Defines if the users can download files from server.
# - $${PASV_ENABLE}, YES/NO for enabling/disabling PASV
# - $${PASV_ADDRESS}, URL for PASIVE MODE
# - $${PASV_MIN}, min port number for PASIVE MODE
# - $${PASV_MAX}, max port number for PASIVE MODE
# - $${DATA_LOCATION}, location for the application data
############################################################
version: '2'
services:
$${INSTANCE_NAME}-vsftpd:
image: fikipollo/vsftpd
container_name: $${INSTANCE_NAME}-vsftpd
environment:
- FTP_USER=$${FTP_USER}
- FTP_PASS=$${FTP_PASS}
- ONLY_UPLOAD=$${ONLY_UPLOAD}
- PASV_ENABLE=$${PASV_ENABLE}
- PASV_ADDRESS=$${PASV_ADDRESS}
- PASV_MIN=$${PASV_MIN}
- PASV_MAX=$${PASV_MAX}
depends_on:
- $${INSTANCE_NAME}-vsftpd-data
volumes_from:
- $${INSTANCE_NAME}-vsftpd-data
ports:
- "$${INSTANCE_PORT_1}:21"
- "$${PASV_MIN}-$${PASV_MAX}:$${PASV_MIN}-$${PASV_MAX}"
$${INSTANCE_NAME}-vsftpd-data:
image: busybox
container_name: $${INSTANCE_NAME}-vsftpd-data
volumes:
- $${DATA_LOCATION}/$${INSTANCE_NAME}-vsftpd/data:/home