From ee6188d10072e1399e7a2fd8c86fb8300d811910 Mon Sep 17 00:00:00 2001 From: RasHas Date: Thu, 31 Mar 2022 23:11:39 +0300 Subject: [PATCH 1/2] Update install docs Add docker-compose example --- docs/install.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/install.md b/docs/install.md index 94630d83..f7fd7607 100644 --- a/docs/install.md +++ b/docs/install.md @@ -187,6 +187,24 @@ docker run \ serve ``` +Using docker-compose: +``` +version: "2.1" + +services: + ntfy: + image: binwiederhier/ntfy + container_name: ntfy + command: + - serve + volumes: + - /var/cache/ntfy:/var/cache/ntfy + - /etc/ntfy:/etc/ntfy + ports: + - 80:80 + restart: unless-stopped +``` + Alternatively, you may wish to build a customized Docker image that can be run with fewer command-line arguments and without delivering the configuration file separately. ``` FROM binwiederhier/ntfy From 44b9358c600b66c4e9c922bb382b5e322fd280bc Mon Sep 17 00:00:00 2001 From: "Philipp C. Heckel" Date: Thu, 31 Mar 2022 18:16:56 -0400 Subject: [PATCH 2/2] Update install.md --- docs/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install.md b/docs/install.md index f7fd7607..04d69bb8 100644 --- a/docs/install.md +++ b/docs/install.md @@ -188,7 +188,7 @@ docker run \ ``` Using docker-compose: -``` +```yaml version: "2.1" services: