-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (95 loc) · 2.93 KB
/
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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
################################################################### #### # ##
# >> DOCKER-COMPOSE-GLFTPD-V2
################################################################### #### # ##
# build args: see docker-build.sh comments
# environment options: see docker-run.sh comments
# comment any volumes you do not want to (bind) mount from host
################################################################### #### # ##
version: "3"
services:
glftpd:
image: ghcr.io/silv3rr/docker-glftpd:latest
volumes: &glftpd_volumes
- ./glftpd/site:/glftpd/site:rw
- ./glftpd/glftpd.conf:/glftpd/glftpd.conf
- ./glftpd/etc:/glftpd/etc
- ./glftpd/ftp-data/users:/glftpd/ftp-data/users
- ./glftpd/ftp-data/groups:/groups/ftp-data/groups
- ./glftpd/sitebot:/glftpd/sitebot
ports: &glftpd_ports
- "1337:1337"
# uncomment for bot
# - "3333:3333"
# uncomment for pasv ports
# - "5000-6000:5000-6000"
ulimits:
nofile:
soft: 1024
hard: 1024
container_name: glftpd
hostname: glftpd
# environment:
web:
image: ghcr.io/silv3rr/docker-glftpd-web:latest
volumes: &web_volumes
- /var/run/docker.sock:/var/run/docker.sock
- ./glftpd/glftpd.conf:/app/glftpd/glftpd.conf
- ./glftpd/sitebot/eggdrop.conf:/app/glftpd/sitebot/eggdrop.conf
- ./glftpd/sitebot/pzs-ng/ngBot.conf:/app/glftpd/sitebot/pzs-ng/ngBot.conf
- ./glftpd/site:/app/glftpd/site
ports: &web_ports
- 4444:443
ulimits:
nofile:
soft: 1024
hard: 1024
container_name: glftpd-web
hostname: glftpd-web
################################################################### #### # ##
# local build
################################################################### #### # ##
local-glftpd:
profiles:
- local
build:
context: .
cache_from:
- docker-glftpd:latest
dockerfile: Dockerfile
args:
- GLFTPD_URL=https://silv3rr.bitbucket.io/files/glftpd-LNX-2.13a_3.0.8_x64.tgz
- GLFTPD_SHA=1416604d5c5f5899a636af08c531129efc627bd52082f378b98425d719d08d8e6c88f60e3e1b54c872c88522b8995c4e5270ca1a3780e1e3b47b79e9e024e4c5
- INSTALL_ZS=1
- INSTALL_BOT=1
- INSTALL_WEBGUI=1
image: docker-glftpd:latest
volumes: *glftpd_volumes
ports: *glftpd_ports
ulimits:
nofile:
soft: 1024
hard: 1024
container_name: glftpd
hostname: glftpd
# environment:
local-web:
profiles:
- local
build:
context: .
cache_from:
- docker-glftpd-web:latest
dockerfile: Dockerfile-web
# uncomment to change htpasswd
# args: [ WEB_PASSWORD=Othersh1ttyPass ]
image: docker-glftpd-web:latest
volumes: *web_volumes
ports: *web_ports
ulimits:
nofile:
soft: 1024
hard: 1024
container_name: glftpd-web
hostname: glftpd-web
# environment:
# volumes: