Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Commit

Permalink
Improved README's usage for custom volumes.
Browse files Browse the repository at this point in the history
What
===
Added `-v` and `volumes` to the usage.

Why
===
So it's clear that they need to be provided when defining custom volume locations instead of the default `/unison`. The Dockerfile contains a `VOLUME` command which is set to `/unison` when building, which is why the `volumes` definition in the docker-compose file and the `-v` on the command line are unnecessary when it is unchanged.
  • Loading branch information
leighmcculloch committed Aug 2, 2016
1 parent aff959f commit 286ff02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The docker image is available on Docker Hub:
First, you can launch a volume container exposing a volume with Unison.

```bash
$ CID=$(docker run -d -p 5000:5000 -e UNISON_WORKING_DIR=/unison leighmcculloch/unison:latest)
$ CID=$(docker run -d -p 5000:5000 -e UNISON_WORKING_DIR=/unison -v /unison leighmcculloch/unison:latest)
```

You can then sync a local folder to `/unison` in the container with:
Expand Down Expand Up @@ -41,6 +41,8 @@ unison:
image: leighmcculloch/unison:latest
environment:
- UNISON_WORKING_DIR=/unison
volumes:
- /unison
ports:
- "5000:5000"
```
Expand Down

0 comments on commit 286ff02

Please # to comment.