LibreY

- privacy respecting meta search engine
git clone git://git.acid.vegas/LibreY.git
Log | Files | Refs | Archive | README | LICENSE

commit 5a8672c1509ddd5c744dde0cfad89c9db29dfde6
parent 514c290b46b52bb604191141a3a6bbd15b9e3c5f
Author: Revvy <nothingtohide@revvy.de>
Date: Sat, 2 Sep 2023 00:12:13 -0400

add watchtower

Diffstat:
Mdocker-compose.yml | 6+++++-
Mdocker/README.md | 14+++++++++++++-

2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/docker-compose.yml b/docker-compose.yml
@@ -1,4 +1,4 @@
-version: "2.1"
+version: "3"
 services:
   librey:
     image: ghcr.io/ahwxorg/librey:latest
@@ -21,3 +21,7 @@ services:
       - ./nginx_logs:/var/log/nginx
       - ./php_logs:/var/log/php7
     restart: unless-stopped
+  watchtower:
+    image: containrrr/watchtower
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
diff --git a/docker/README.md b/docker/README.md
@@ -34,12 +34,20 @@ docker run -d \
   ghcr.io/ahwxorg/librey:latest
 ```
 
+Also run with watchtower for auto-updating: (optional)
+```sh
+docker run -d \
+  --name librey-watchtower-1 \
+  -v /var/run/docker.sock:/var/run/docker.sock \
+  containrrr/watchtower
+```
+
 <br>
 
 ### Running a Docker container with composer
 
 ```yml
-version: "2.1"
+version: "3"
 services:
   librey:
     image: ghcr.io/ahwxorg/librey:latest
@@ -62,6 +70,10 @@ services:
       - ./nginx_logs:/var/log/nginx
       - ./php_logs:/var/log/php7
     restart: unless-stopped
+  watchtower:
+    image: containrrr/watchtower
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
 ```
 
 <br>