Database connections
The container includes a host.docker.internal host mapping. Use that hostname instead of localhost when connecting to a database on the Docker host. Create a dedicated read-only account for PostgreSQL, MySQL, MariaDB, or MongoDB, limited to approved schemas, tables, or collections.
Back up and restore
Stop dig before a consistent backup: docker stop dig. Back up the dig-data volume, then restart with docker start dig. The volume contains credentials, settings, dashboards, and audit records.