MYOWNDN / DOCUMENTATION

Installation

Run an obtained myOwnDN application checkout with Docker Compose or Python ≥3.13.

Requirements and source access

Contact EnigmaIS for source access. Public repository and container registry links are not available here yet. The commands below run from an obtained application checkout, not this static website’s directory.

  • Docker path: Docker Engine with Compose v2, OpenSSL, and Python ≥3.8 for version stamping.
  • Local path: Python ≥3.13, a virtual environment, and a scheduler such as cron. Python 3.13’s full peer-chain behavior is required by the TLS check.
  • Allow outbound DNS, RDAP/WHOIS, HTTPS to crt.sh, and connections to the services you monitor. Configure the connections needed by notification channels and DMARC IMAP ingestion.

Docker Compose — recommended

The stack includes the app service named ca, a scheduler sidecar, and an nginx HTTPS proxy. SQLite lives on a persistent named volume.

1. Prepare TLS

From the application checkout
scripts/gen-tls-cert.sh dns.example.internal

This generates a self-signed certificate for evaluation. For public-facing service, replace tls/tls.crt and tls/tls.key with certificates appropriate for your deployment. The proxy requires both files.

2. Configure the instance

Put shared settings in the application checkout’s .env, or export them before starting Compose. MYOWNDN_BASE_URL should be your real URL; the URL saved in setup or Settings takes precedence. Leave MYOWNDN_SECRET unset to generate it once in persistent secrets.env, or manage the same secret across both app and scheduler. Do not change it later without a supported migration.

Both app and scheduler need the same state, database configuration, and encryption secret. A setting added only to the app service does not configure scheduled checks or notifications.

3. Build with version information, then start

Build and start the SQLite stack
scripts/docker-build.sh
docker compose up -d

Use the build script to stamp the image from the checkout’s version and release metadata. docker compose up --build does not pass those build arguments and may show an unknown version.

MariaDB alternative

Set a strong MYOWNDN_DB_PASSWORD in .env before first initialization. Use both Compose files for installation, upgrades, and subsequent stack changes:

Build and start with the MariaDB overlay
scripts/docker-build.sh -f docker-compose.yml -f docker-compose.mariadb.yml
docker compose -f docker-compose.yml -f docker-compose.mariadb.yml up -d

Keep the same initialized password. Omitting the overlay later changes the application’s database configuration and can make it start against an empty SQLite database.

4. Complete first-run setup

Find the one-time setup token
docker compose logs ca | grep "setup token"

Open https://your-host/setup, enter the token, create the administrator, enroll TOTP and save the backup codes (or use the setup skip option), then set instance name, timezone, and base URL.

5. Verify the stack

Check app and scheduler health
docker compose ps
docker compose logs scheduler --tail 30
# Optional: run one check/notify cycle now
docker compose exec -T ca myowndn run

The scheduler sidecar replaces host cron. Its loop interval and the individual check scheduling tiers are separate: a loop only runs checks that are due.

Local Python environment

Python 3.13 or newer, from the application checkout
python3 --version
python3 -m venv .venv
.venv/bin/pip install -e .

Generate the secret once in the state directory, then run the server:

Persistent secret and plain-HTTP local server
mkdir -p var
[ -f var/secrets.env ] || (umask 077 && .venv/bin/python -c   'import secrets; print("MYOWNDN_SECRET=" + secrets.token_urlsafe(32))' > var/secrets.env)
MYOWNDN_STATE_DIR=./var MYOWNDN_COOKIE_SECURE=false .venv/bin/myowndn-serve

Open http://localhost:8900/setup and use the one-time token printed in the console. MYOWNDN_COOKIE_SECURE=false is for plain-HTTP local evaluation only; use the default secure cookies behind HTTPS in your deployment.

Every CLI and scheduled process must use the same absolute state directory. The application reads the stored secrets.env from that directory. If you supply the secret through the environment instead, supply the same value to every process.

Example crontab — replace the checkout and state paths
# Hourly checks and notifications
0 * * * * cd /path/to/myowndn && MYOWNDN_STATE_DIR=/path/to/myowndn/var .venv/bin/myowndn run >> /path/to/myowndn/var/run.log 2>&1
# DMARC mailbox ingestion, if configured
15 * * * * cd /path/to/myowndn && MYOWNDN_STATE_DIR=/path/to/myowndn/var .venv/bin/myowndn dmarc fetch >> /path/to/myowndn/var/dmarc.log 2>&1

For MariaDB, install the mariadb extra and supply the same MYOWNDN_DATABASE_URL to the server, cron jobs, and CLI calls. Otherwise a process may quietly use a separate SQLite database.

After setup

  1. Add owners and their notification contacts.
  2. Add domains, assign owners, and select the required checks.
  3. Configure channels in Settings and use each channel’s test action.
  4. Optionally configure a dedicated DMARC report mailbox or import reports manually.
  5. Back up persistent state, the encryption secret, and the database.

Continue with operations, backups, recovery, and upgrades.

Planning a deployment?

Talk to EnigmaIS