moved compose to README.md
This commit is contained in:
parent
c7be517e34
commit
171efcc0c7
27
README.md
27
README.md
@ -1,3 +1,28 @@
|
|||||||
# dpinger-container
|
# 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
|
||||||
|
```
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user