Update install docs

Add docker-compose example
pull/194/head
RasHas 2022-03-31 23:11:39 +03:00 committed by GitHub
parent 5aedfd3898
commit ee6188d100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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