aboutsummaryrefslogtreecommitdiff
path: root/doc/book/cookbook/real-world.md
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-16 13:33:33 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-16 13:33:33 +0100
commitfc8f795bba1e23c8932af322959e0e3db2ef1233 (patch)
tree600be3fc77d62f5a6a321951fe9120837d3a0f58 /doc/book/cookbook/real-world.md
parenta7af0c8af98b8009ef9c7047d9f710c3bcf4e41a (diff)
downloadgarage-fc8f795bba1e23c8932af322959e0e3db2ef1233.tar.gz
garage-fc8f795bba1e23c8932af322959e0e3db2ef1233.zip
Rename subsections and add docker compose file
Diffstat (limited to 'doc/book/cookbook/real-world.md')
-rw-r--r--doc/book/cookbook/real-world.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/book/cookbook/real-world.md b/doc/book/cookbook/real-world.md
index 6fe7e547..f0fe3bd1 100644
--- a/doc/book/cookbook/real-world.md
+++ b/doc/book/cookbook/real-world.md
@@ -164,6 +164,21 @@ It should be restarted automatically at each reboot.
Please note that we use host networking as otherwise Docker containers
can not communicate with IPv6.
+If you want to use `docker-compose`, you may use the following `docker-compose.yml` file as a reference:
+
+```yaml
+version: "3"
+services:
+ garage:
+ image: dxflrs/garage:v0.8.0
+ network_mode: "host"
+ restart: unless-stopped
+ volumes:
+ - /etc/garage.toml:/etc/garage.toml
+ - /var/lib/garage/meta:/var/lib/garage/meta
+ - /var/lib/garage/data:/var/lib/garage/data
+```
+
Upgrading between Garage versions should be supported transparently,
but please check the relase notes before doing so!
To upgrade, simply stop and remove this container and