2023-08-02 16:54:40 +08:00
|
|
|
services:
|
|
|
|
sftpgo:
|
2024-05-20 11:09:03 +08:00
|
|
|
image: drakkan/sftpgo:v2.6.0-alpine
|
2023-08-02 16:54:40 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8080
|
2023-08-09 14:48:08 +08:00
|
|
|
- ${PANEL_APP_PORT_SFTP}:${PANEL_APP_PORT_SFTP}
|
|
|
|
- ${PANEL_APP_PORT_FTP}:${PANEL_APP_PORT_FTP}
|
2023-08-02 16:54:40 +08:00
|
|
|
- ${PASSIVE_PORT_RANGE_START}-${PASSIVE_PORT_RANGE_END}:${PASSIVE_PORT_RANGE_START}-${PASSIVE_PORT_RANGE_END}
|
2023-08-09 14:48:08 +08:00
|
|
|
- ${PANEL_APP_PORT_WEBDAV}:${PANEL_APP_PORT_WEBDAV}
|
2023-08-02 16:54:40 +08:00
|
|
|
environment:
|
2023-08-09 14:48:08 +08:00
|
|
|
SFTPGO_FTPD__BINDINGS__0__PORT: ${PANEL_APP_PORT_FTP}
|
|
|
|
SFTPGO_WEBDAVD__BINDINGS__0__PORT: ${PANEL_APP_PORT_WEBDAV}
|
|
|
|
SFTPGO_SFTPD__BINDINGS__0__PORT: ${PANEL_APP_PORT_SFTP}
|
2023-08-02 16:54:40 +08:00
|
|
|
SFTPGO_FTPD__BINDINGS__0__FORCE_PASSIVE_IP: ${FTP_EXTERNAL_IP}
|
|
|
|
SFTPGO_FTPD__PASSIVE_PORT_RANGE__START: ${PASSIVE_PORT_RANGE_START}
|
|
|
|
SFTPGO_FTPD__PASSIVE_PORT_RANGE__END: ${PASSIVE_PORT_RANGE_END}
|
|
|
|
volumes:
|
|
|
|
- ./data/data:/srv/sftpgo
|
|
|
|
- ./data/config:/var/lib/sftpgo
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|