-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
executable file
·67 lines (64 loc) · 1.89 KB
/
Copy pathcompose.yaml
File metadata and controls
executable file
·67 lines (64 loc) · 1.89 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
vsftpd:
build:
context: ./services/vsftpd
args:
- IMAGE_REGISTRY=${IMAGE_REGISTRY:-docker.cnb.cool/seatonjiang/vsftpd}
- VSFTPD_VERSION=${VSFTPD_VERSION:-alpine}
- ALPINE_MIRROR=${ALPINE_MIRROR:-mirrors.cloud.tencent.com}
- PASV_ADDRESS=${VSFTPD_PASV_ADDRESS:-127.0.0.1}
container_name: vsftpd
restart: always
ports:
- "${VSFTPD_PORT:-21}:21"
- "${VSFTPD_PASSIVE_PORT:-50000-50100}:50000-50100"
volumes:
- ./data/vsftpd/:/var/lib/ftp/:rw
- ./logs/vsftpd/:/var/log/vsftpd/:rw
- ./services/vsftpd/vsftpd.conf:/etc/vsftpd/vsftpd.conf:ro
environment:
- TZ=${TIME_ZONE:-Asia/Shanghai}
secrets:
- vsftpd-user-name
- vsftpd-user-pwd
networks:
vsftpd:
ipv4_address: 172.16.24.10
caddy:
build:
context: ./services/caddy
args:
- IMAGE_REGISTRY=${IMAGE_REGISTRY:-docker.cnb.cool/seatonjiang/vsftpd}
- CADDY_VERSION=${CADDY_VERSION:-alpine}
- ALPINE_MIRROR=${ALPINE_MIRROR:-mirrors.cloud.tencent.com}
container_name: vsftpd-caddy
restart: unless-stopped
ports:
- "${CADDY_HTTP_PORT:-80}:80"
- "${CADDY_HTTPS_PORT:-443}:443"
- "${CADDY_HTTPS_PORT:-443}:443/udp"
volumes:
- ./data/vsftpd:/var/www/:ro
- ./data/caddy/:/data/caddy/:rw
- ./logs/caddy/:/var/log/caddy/:rw
- ./services/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- ./services/caddy/ssl/:/etc/caddy/ssl/:ro
environment:
- TZ=${TIME_ZONE:-Asia/Shanghai}
networks:
vsftpd:
ipv4_address: 172.16.24.11
networks:
vsftpd:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.24.0/25
gateway: 172.16.24.1
ip_range: 172.16.24.0/26
secrets:
vsftpd-user-name:
file: ./secrets/vsftpd-user-name
vsftpd-user-pwd:
file: ./secrets/vsftpd-user-pwd