Merge pull request #74 from ramonsnir/patch-2

Update Docker installation with a Dockerfile example
pull/89/head
Philipp C. Heckel 2021-12-30 00:46:25 +01:00 committed by GitHub
commit 35b2ca51d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -181,6 +181,14 @@ docker run \
serve
```
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
COPY server.yml /etc/ntfy/server.yml
ENTRYPOINT ["ntfy", "serve"]
```
This image can be pushed to a container registry and shipped independently. All that's needed when running it is mapping ntfy's port to a host port.
## Go
To install via Go, simply run:
```bash