-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (70 loc) · 1.61 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
services:
db:
image: postgres
expose:
- "5432"
environment:
POSTGRES_DB: sftpgo
POSTGRES_USER: sftpgo
POSTGRES_PASSWORD: "${DB_PASSWORD}"
volumes:
- sftpdbdata:/var/lib/postgresql/data
lb:
build: .
ports:
- "22:22"
- "8080:8080"
- "70:70"
expose:
- "22"
- "8080"
- "70"
links:
- "sftpgo1"
- "sftpgo2"
sftpgo1:
image: drakkan/sftpgo:latest
expose:
- "2022"
- "8080"
links:
- "db"
environment:
SFTPGO_COMMON__PROXY_PROTOCOL: 1
SFTPGO_DATA_PROVIDER__DRIVER: postgresql
SFTPGO_DATA_PROVIDER__NAME: sftpgo
SFTPGO_DATA_PROVIDER__HOST: db
SFTPGO_DATA_PROVIDER__PORT: 5432
SFTPGO_DATA_PROVIDER__USERNAME: sftpgo
SFTPGO_DATA_PROVIDER__PASSWORD: "${DB_PASSWORD}"
SFTPGO_HTTPD__BINDINGS__0__ENABLE_WEB_CLIENT: "false"
volumes:
- sftpdata:/srv/sftpgo
- sftphome:/var/lib/sftpgo
depends_on:
- "db"
sftpgo2:
image: drakkan/sftpgo:latest
expose:
- "2022"
- "8080"
links:
- "db"
environment:
SFTPGO_COMMON__PROXY_PROTOCOL: 1
SFTPGO_DATA_PROVIDER__DRIVER: postgresql
SFTPGO_DATA_PROVIDER__NAME: sftpgo
SFTPGO_DATA_PROVIDER__HOST: db
SFTPGO_DATA_PROVIDER__PORT: 5432
SFTPGO_DATA_PROVIDER__USERNAME: sftpgo
SFTPGO_DATA_PROVIDER__PASSWORD: "${DB_PASSWORD}"
SFTPGO_HTTPD__BINDINGS__0__ENABLE_WEB_CLIENT: "false"
volumes:
- sftpdata:/srv/sftpgo
- sftphome:/var/lib/sftpgo
depends_on:
- "db"
volumes:
sftpdata:
sftphome:
sftpdbdata: