diff --git a/README.md b/README.md index 017d736..6b77682 100644 --- a/README.md +++ b/README.md @@ -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 -L 15 -D 80 +``` + + +or with `docker compose`: + +``` +version: "3.7" + +services: + dpinger-container: + image: git.socialnerds.org/david/dpinger-container:latest + command: -i -L 15 -D 80 + restart: unless-stopped + environment: + - NTFY_URL=https://ntfy.sh/test +``` diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index a9af68b..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,18 +0,0 @@ -version: "3.7" - -services: - dpinger-container: - build: - context: . - image: local/dpinger-container:latest - command: -i -L 15 -D 80 - 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