nezha Docker & Self-Hosted Deployment

GitHub

Trollface: Self-hosted, lightweight server and website monitoring and O&M tool

10,244 stars Go Go 1 file ยท ~12,569 tokens #monitoring#monitoring-tool#system
1. Pull Image (DOCKERHUB) docker pull nezhahq/nezha:latest
2. Docker Run (1-Click Launch) docker run -d --name nezha -p 8008:8008 --restart always nezhahq/nezha:latest
3. Podman Run podman run -d --name nezha -p 8008:8008 --restart always nezhahq/nezha:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/nezhahq/nezha:latest
5. ORAS Pull (OCI Artifact) oras pull nezhahq/nezha:latest
Dockerfile
FROM alpine AS depend
RUN apk add --update --no-cache ca-certificates tzdata

FROM busybox:stable-musl

ARG TARGETOS
ARG TARGETARCH

COPY --from=depend /etc/ssl/certs /etc/ssl/certs
COPY --from=depend /usr/share/zoneinfo /usr/share/zoneinfo
COPY ./script/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

WORKDIR /dashboard
COPY dist/dashboard-${TARGETOS}-${TARGETARCH} ./app

VOLUME ["/dashboard/data"]
EXPOSE 8008
ARG TZ=Asia/Shanghai
ENV TZ=$TZ
ENTRYPOINT ["/entrypoint.sh"]