From fbb0ba85edca3e1ea4ae3dfd07fcec66cb40e66c Mon Sep 17 00:00:00 2001 From: Sagnik Sasmal <16162562+SagnikSRHUSE@users.noreply.github.com> Date: Tue, 19 Oct 2021 18:51:20 +0530 Subject: [PATCH] Start on boot and separate network Added support for autostarting on boot and a separate network for the stack. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index eb5fa05..6f520a9 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,9 @@ An example [docker-compose](https://docs.docker.com/compose/) file can be seen b ``` version: '3' +networks: + wallabag: + external: false services: wallabag: image: wallabag/wallabag @@ -133,6 +136,9 @@ services: - "80" volumes: - /opt/wallabag/images:/var/www/wallabag/web/assets/images + restart: always + networks: + - wallabag healthcheck: test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost"] interval: 1m @@ -146,12 +152,18 @@ services: - MYSQL_ROOT_PASSWORD=wallaroot volumes: - /opt/wallabag/data:/var/lib/mysql + restart: always + networks: + - wallabag healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] interval: 20s timeout: 3s redis: image: redis:alpine + restart: always + networks: + - wallabag healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 20s