• Joined on 2026-05-16

dockmon (latest)

Published 2026-05-16 18:11:54 +02:00 by poma

Installation

docker pull gitea.poma-lab.com/poma/dockmon:latest
sha256:00d471820f7f0057561ff6b81381dafeccf76106a5fc90a5b93593074147169c

About this package

DockMon - Modern Docker container monitoring with auto-restart and alerts

Image Layers

ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
ENV PYTHON_VERSION=3.13.13
ENV PYTHON_SHA256=2ab91ff401783ccca64f75d10c882e957bdfd60e2bf5a72f8421793729b78a71
RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps bluez-dev bzip2-dev dpkg-dev dpkg findutils gcc gdbm-dev gnupg libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tar tcl-dev tk tk-dev util-linux-dev xz xz-dev zlib-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(apk --print-arch)"; case "$arch" in x86_64|aarch64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; x86) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
ARG APP_VERSION=v2.4.1
LABEL org.opencontainers.image.title=DockMon
LABEL org.opencontainers.image.description=Self-hosted Docker monitoring and management platform with multi-host support, container updates, health checks, and alerts
LABEL org.opencontainers.image.authors=darthnorse
LABEL org.opencontainers.image.source=https://github.com/darthnorse/dockmon
LABEL org.opencontainers.image.url=https://github.com/darthnorse/dockmon
LABEL org.opencontainers.image.documentation=https://github.com/darthnorse/dockmon
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.vendor=darthnorse
LABEL org.opencontainers.image.version=v2.4.1
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c apk upgrade --no-cache && apk add --no-cache nginx curl ca-certificates openssl bash libffi && apk add --no-cache --virtual .build-deps gcc musl-dev linux-headers libffi-dev openssl-dev python3-dev # buildkit
WORKDIR /app
COPY /build/stats-service/stats-service /usr/local/bin/stats-service # buildkit
COPY /build/compose-service/compose-service /usr/local/bin/compose-service # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c chmod +x /usr/local/bin/stats-service /usr/local/bin/compose-service # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c pip install --no-cache-dir --upgrade pip # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c pip install --no-cache-dir supervisor==4.3.0 # buildkit
COPY backend/requirements.txt /app/backend/ # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c pip install --no-cache-dir -r /app/backend/requirements.txt && apk del .build-deps # buildkit
COPY backend/ /app/backend/ # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c echo "${APP_VERSION}" > /app/VERSION # buildkit
COPY /build/dist /usr/share/nginx/html/ # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c chmod -R 644 /usr/share/nginx/html/* # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c find /usr/share/nginx/html -type d -exec chmod 755 {} \; # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c mkdir -p /etc/nginx/certs # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c rm -f /etc/nginx/http.d/default.conf # buildkit
COPY docker/nginx.conf /etc/nginx/http.d/default.conf # buildkit
COPY docker/nginx-http.conf /docker/nginx-http.conf # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c sed -i '/^http {/a \ # WebSocket upgrade mapping\n map $http_upgrade $connection_upgrade {\n default upgrade;\n '"''"' close;\n }\n' /etc/nginx/nginx.conf # buildkit
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c mkdir -p /app/data && chmod 700 /app/data && mkdir -p /var/log/supervisor /var/run # buildkit
RUN |1 APP_VERSION=v2.4.1 /bin/sh -c echo '#!/bin/bash' > /startup.sh && echo 'set -e' >> /startup.sh && echo '' >> /startup.sh && echo '# Ensure certificates exist (generate if missing)' >> /startup.sh && echo 'if [ ! -f /etc/nginx/certs/dockmon.crt ]; then' >> /startup.sh && echo ' mkdir -p /etc/nginx/certs' >> /startup.sh && echo ' echo "Generating SSL certificates (47-day validity for Apple browser compliance)..."' >> /startup.sh && echo ' openssl req -x509 -nodes -days 47 -newkey rsa:2048 \' >> /startup.sh && echo ' -keyout /etc/nginx/certs/dockmon.key \' >> /startup.sh && echo ' -out /etc/nginx/certs/dockmon.crt \' >> /startup.sh && echo ' -subj "/C=US/ST=State/L=City/O=DockMon/CN=localhost" > /dev/null 2>&1' >> /startup.sh && echo ' echo "SSL certificates generated successfully with 47-day validity"' >> /startup.sh && echo ' chmod 600 /etc/nginx/certs/dockmon.key' >> /startup.sh && echo ' chmod 644 /etc/nginx/certs/dockmon.crt' >> /startup.sh && echo 'fi' >> /startup.sh && echo '' >> /startup.sh && echo '# Detect reverse proxy mode' >> /startup.sh && echo 'if [ "$REVERSE_PROXY_MODE" = "true" ]; then' >> /startup.sh && echo ' echo "Reverse proxy mode enabled - nginx will listen on HTTP port 80"' >> /startup.sh && echo ' cp /docker/nginx-http.conf /etc/nginx/http.d/default.conf' >> /startup.sh && echo 'else' >> /startup.sh && echo ' echo "Direct access mode (default) - nginx will listen on HTTPS port 443"' >> /startup.sh && echo 'fi' >> /startup.sh && echo '' >> /startup.sh && echo '# Run database migrations' >> /startup.sh && echo 'echo "Running database migrations..."' >> /startup.sh && echo 'cd /app' >> /startup.sh && echo 'python3 backend/migrate.py' >> /startup.sh && echo 'if [ $? -ne 0 ]; then' >> /startup.sh && echo ' echo "ERROR: Database migration failed. Container will not start."' >> /startup.sh && echo ' exit 1' >> /startup.sh && echo 'fi' >> /startup.sh && echo 'echo "Database migrations completed successfully"' >> /startup.sh && echo '' >> /startup.sh && echo '# Start supervisor' >> /startup.sh && echo 'exec /usr/local/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf' >> /startup.sh && chmod +x /startup.sh # buildkit
EXPOSE [443/tcp 80/tcp 8080/tcp]
HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:8080/health && curl -f http://localhost:8081/health || exit 1"] "30s" "10s" "30s" "0s" '\x03'}
VOLUME [/app/data]
CMD ["/startup.sh"]

Labels

Key Value
org.opencontainers.image.authors darthnorse
org.opencontainers.image.created 2026-05-01T00:26:54.950Z
org.opencontainers.image.description DockMon - Modern Docker container monitoring with auto-restart and alerts
org.opencontainers.image.documentation https://github.com/darthnorse/dockmon
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision 88b52d3cf37ed94c422a35c20520992c25fd788d
org.opencontainers.image.source https://github.com/darthnorse/dockmon
org.opencontainers.image.title dockmon
org.opencontainers.image.url https://github.com/darthnorse/dockmon
org.opencontainers.image.vendor darthnorse
org.opencontainers.image.version 2.4.1-amd64
Details
Container
2026-05-16 18:11:54 +02:00
0
OCI / Docker
linux/amd64
darthnorse
NOASSERTION
206 MiB
Versions (1) View all
latest 2026-05-16