version: "3" services: sftp: #image: ${SFTP_IMG:-atmoz/sftp}:${SFTP_TAG:-latest} build: . 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