commit
82a603d3aa
@ -0,0 +1,11 @@ |
||||
# Global Settings |
||||
LOCAL_STACK_DIR=/srv/docker/volumes/sftp |
||||
LOCAL_VOLUMES_DIR=/srv/docker/volumes |
||||
|
||||
# sftp (optional) |
||||
SFTP_IMG= |
||||
SFTP_TAG=alpine |
||||
SFTP_CONTAINER_NAME= |
||||
SFTP_RESTART= |
||||
SFTP_IP= |
||||
SFTP_EXT_PORT= |
@ -0,0 +1 @@ |
||||
.env |
@ -0,0 +1,17 @@ |
||||
version: "3" |
||||
|
||||
services: |
||||
sftp: |
||||
image: ${SFTP_IMG:-atmoz/sftp}:${SFTP_TAG:-latest} |
||||
container_name: ${SFTP_CONTAINER_NAME:-sftp} |
||||
restart: ${SFTP_RESTART:-unless-stopped} |
||||
volumes: |
||||
- ${LOCAL_STACK_DIR}/sftp/home:/home |
||||
- ${LOCAL_STACK_DIR}/sftp/etc/sftp:/etc/sftp:ro |
||||
- ${LOCAL_STACK_DIR}/sftp/etc/ssh:/etc/ssh |
||||
- ${LOCAL_STACK_DIR}/sftp/etc/sftp.d:/etc/sftp.d:ro |
||||
- ${LOCAL_STACK_DIR}/sftp/mnt:/mnt:ro |
||||
ports: |
||||
- "${SFTP_IP:-0.0.0.0}:${SFTP_EXT_PORT:2222}:22" |
||||
cap_add: |
||||
- SYS_ADMIN |
Loading…
Reference in new issue