1
1
Fork 0

moved compose to README.md

This commit is contained in:
david 2023-12-19 06:51:45 +01:00
parent c7be517e34
commit 171efcc0c7
2 changed files with 26 additions and 19 deletions

View File

@ -1,3 +1,28 @@
# dpinger-container
Docker image for [dpinger](https://github.com/dennypage/dpinger) with [ntfy.sh](https://ntfy.sh) integration. The image is based off of `alpine:latest`.
Docker image for [dpinger](https://github.com/dennypage/dpinger) with [ntfy.sh](https://ntfy.sh) integration. The image is based off of `alpine:latest` and supports `amd64` and `arm64`.
## Usage
Using this image with `docker run` directly:
```
docker run --rm -it -e NTFY_URL=https://ntfy.sh/test \
git.socialnerds.org/david/dpinger-container:latest \
-i <identifier> -L 15 -D 80 <ip-address>
```
or with `docker compose`:
```
version: "3.7"
services:
dpinger-container:
image: git.socialnerds.org/david/dpinger-container:latest
command: -i <identifier> -L 15 -D 80 <ip-address>
restart: unless-stopped
environment:
- NTFY_URL=https://ntfy.sh/test
```

View File

@ -1,18 +0,0 @@
version: "3.7"
services:
dpinger-container:
build:
context: .
image: local/dpinger-container:latest
command: -i <optional-identifier> -L 15 -D 80 <ip-address>
restart: unless-stopped
environment:
- NTFY_URL=https://ntfy.sh/test
# This is only needed if your Docker setup needs to go through a VPN to reach the Internet
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1420