diff options
author | B. van Berkum <dev@dotmpe.com> | 2017-10-03 00:23:34 +0200 |
---|---|---|
committer | B. van Berkum <dev@dotmpe.com> | 2017-10-03 00:23:34 +0200 |
commit | 02ff7897c0bcb48521ddd0c494f346b6df275ab4 (patch) | |
tree | 6624d93e44d58751d03f9433659cfd498a914d19 /doc | |
parent | 3512f4461722c9a3c7cf6511232bda156bf91970 (diff) | |
download | Shaarli-02ff7897c0bcb48521ddd0c494f346b6df275ab4.tar.gz Shaarli-02ff7897c0bcb48521ddd0c494f346b6df275ab4.tar.zst Shaarli-02ff7897c0bcb48521ddd0c494f346b6df275ab4.zip |
Added docker quickstart example, with user-data volume
Diffstat (limited to 'doc')
-rw-r--r-- | doc/md/index.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/md/index.md b/doc/md/index.md index 24ada6c7..5f10227f 100644 --- a/doc/md/index.md +++ b/doc/md/index.md | |||
@@ -22,6 +22,18 @@ It runs the latest development version of Shaarli and is updated/reset daily. | |||
22 | 22 | ||
23 | Login: `demo`; Password: `demo` | 23 | Login: `demo`; Password: `demo` |
24 | 24 | ||
25 | Docker users can start a personal instance from an [autobuild image](https://hub.docker.com/r/shaarli/shaarli/). For an example to start a temporary Shaarli at ``localhost:8000``, and to keeps the data you create (config, storage) during the session: | ||
26 | ``` | ||
27 | MY_SHAARLI_VOLUME=$(cd /path/to/shaarli/data/ && pwd -P) | ||
28 | docker run -ti --rm \ | ||
29 | -p 8000:80 \ | ||
30 | -v $MY_SHAARLI_VOLUME:/var/www/shaarli/data \ | ||
31 | shaarli/shaarli | ||
32 | ``` | ||
33 | |||
34 | A brief guide on getting starting using docker is given in [Docker 101](docker/docker-101). | ||
35 | |||
36 | To learn more about user data and how to keep it across versions, please see [Upgrade and Migration](Upgrade-and-migration) documentation. | ||
25 | 37 | ||
26 | ## Features | 38 | ## Features |
27 | 39 | ||