From 82a603d3aa37afb1e2bb5b3b21144724fbf7b347 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sat, 22 Aug 2020 14:41:24 +0200 Subject: [PATCH] Moved on git --- .env.example | 11 +++++++++++ .gitignore | 1 + docker-compose.yml | 17 +++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..77f2c6c --- /dev/null +++ b/.env.example @@ -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= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6f64495 --- /dev/null +++ b/docker-compose.yml @@ -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