From ba5f021612e05809183c68368419f0c20bf0c8a8 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Mon, 23 Nov 2015 15:11:48 +0100 Subject: [PATCH] Add example using Docker Compose --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6607eca..3e82aa6 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,18 @@ docker run \ foo:123:1001 ``` +#### Using Docker Compose: + +``` +sftp: + image: atmoz/sftp + volumes: + - /host/share:/home/foo/share + ports: + - "2222:22" + command: foo:123:1001 +``` + #### Logging in The OpenSSH server runs by default on port 22, and in this example, we are