Self-Host Domain Locker with Localtonet
Install Domain Locker with Docker, verify the dashboard locally, persist its data, and enable remote HTTP access through Localtonet.
In this article 11 sections
Deploy a versioned domain portfolio dashboard, protect its data, verify recovery, and add controlled remote access
Domain Locker is an open-source dashboard for organizing domain names, renewal dates, DNS and certificate information, monitoring results, costs, notes, and related portfolio data. This guide uses a version-pinned Docker build instead of an unpinned image, verifies the application locally before publication, and includes a stopped-volume backup and isolated restoration test. After the local deployment works, we connect it to a Localtonet HTTP tunnel without requiring inbound router port forwarding, a public IP address, VPN setup, or an inbound public listener on the Docker host.
📋 What's in this guide
How the deployment works
Domain Locker provides one place to track and analyze a portfolio of domain names. Its published feature set includes domain and registrar information, DNS and certificate details, expiration alerts, change history, monitoring, costs and valuations, tags, notes, notifications, and data export. The project also advertises SSO and two-factor authentication options, although the exact authentication configuration available to a self-hosted installation depends on the version and its deployment settings.
This tutorial separates the system into three layers. Docker runs the application and provides persistent storage. A local browser confirms that the application is operational. The Localtonet client then forwards requests from a public HTTPS address to the already working local HTTP service.
Docker and Localtonet solve different problems
Docker packages and runs Domain Locker. It does not automatically provide a safe public endpoint. Localtonet publishes a selected local service, but it does not install Domain Locker, repair a failed container, or replace the application’s authentication.
Keep that boundary in mind while troubleshooting. If the local URL fails, resolve the Docker or application problem first. If the local URL works but the public URL fails, investigate client connectivity, the selected device, the tunnel target, the relay selection, and whether the tunnel was started.
A Localtonet HTTP tunnel publishes the configured web service. It does not join a remote browser to the Docker host’s private network. VPN Manager is our separate private mesh VPN feature.
Version scope and primary project evidence
Self-hosting instructions must distinguish a stable release from a moving development branch. At the time of this review, the Domain Locker repository’s current main branch identified commit 1b238f720e8eb802edcf68f3a407b9952e575fd0. The latest published release shown by the project was Domain Locker v0.3.0 at commit 7743c56, with additional commits present on main after that release.
Release v0.3.0 is especially relevant because its release notes state that self-hosted data moved to a typed API and that SQLite became the default. Those are version-specific project statements. This guide therefore uses the v0.3.0 release tag as its reproducible starting point rather than assuming that a future main commit or an unpinned container image has identical behavior.
The current Domain Locker repository contains a Dockerfile, a default Docker Compose file, a PostgreSQL-specific Compose file, environment samples, startup scripts, and application source. Their presence confirms that the project supports container deployment, but it does not make every historical command, environment variable, path, or schedule valid for every release.
The available review evidence confirms that Compose files exist, but it does not expose enough of their current contents to reproduce and explain every service, environment value, mount, health check, dependency, and startup requirement here. Rather than publish an incomplete Compose tutorial, this guide follows one version-pinned Docker path. If you choose Compose, use the deployment file from the exact release you selected and review its complete configuration before starting it.
This version boundary also explains why the article does not reproduce previously published PostgreSQL variable names, internal scheduled endpoints, or task frequencies. Those details require validation against the exact checked-out source or release documentation. They should not be inferred from an older article or copied into a current production deployment without that validation.
Prerequisites and deployment decisions
An end-to-end installation requires more than Docker. Prepare the Docker host, source-control tools, storage, application access, and Localtonet client path before beginning.
| Requirement | Why it is needed | What to confirm |
|---|---|---|
| Docker-capable host | Builds and runs the selected Domain Locker source release. | The Docker client can communicate with the Docker engine. |
| Git | Retrieves the repository and checks out an exact release tag. | The selected tag resolves to the expected commit. |
| Persistent storage | Keeps application data outside the replaceable container layer. | The Docker host has enough free space for current data, growth, and backups. |
| Local browser or HTTP client | Verifies the application before remote publication. | The testing device can reach the selected Docker host binding. |
| Localtonet account | Provides access to the dashboard, device selection, relay selection, and tunnel configuration. | The account can sign in and access the current HTTP tunnel workflow. |
| Installed Localtonet client | Creates the outbound connection to our relay. | The client runs on the Docker host or another device that can reach the target. |
| Protected device token | Identifies the client device that runs the tunnel. | The token is stored privately and is not committed with the application. |
| Target reachability | Allows the client to connect to Domain Locker. | The exact target IP address and host-side port work from the client device. |
Confirm Docker and Git
docker version
git --version
The Docker result should include both client and server information. If it shows only the client or reports that it cannot connect to the daemon, start the Docker engine and resolve local permissions first.
Select a release instead of a moving branch
This tutorial uses v0.3.0 because the project identifies it as a published release and provides release notes. Before deploying, check the project’s releases and decide whether a newer reviewed release should replace it. If you select another version, substitute its exact tag throughout the installation and preserve that choice in your operational notes.
Choose the Localtonet client location
The safest simple layout runs Docker and the Localtonet client on the same host. That allows the application’s host port to bind only to 127.0.0.1. A loopback-bound service is not directly reachable from other LAN devices.
If the Localtonet client must run on another device, loopback will not work. The Docker host must publish the service on a private interface reachable from that client, and local firewall policy must permit that specific path. Test the target from the client device before creating the tunnel.
Plan storage and recovery before adding data
Docker persistence and backup are different controls. A named volume survives ordinary container replacement, but it remains vulnerable to host loss, accidental volume deletion, filesystem problems, and application-level corruption. Reserve storage for both the active volume and independent backup archives.
Domain Locker v0.3.0 identifies SQLite as the default database. Copying a live SQLite database without coordinating application writes can produce an inconsistent backup. The conservative procedure in this guide stops the application container before archiving the entire persistent volume.
Install a pinned Domain Locker release with Docker
This installation builds the container image locally from the selected release source. That gives the resulting image a version-specific local name and avoids depending on whatever an unpinned registry tag might contain later.
Clone the Domain Locker repository
Retrieve the project from its primary repository and enter the source directory.
Check out the selected release tag
Switch to v0.3.0 and verify that Git reports commit 7743c56 as the selected release commit.
Build a locally versioned image
Build from the checked-out Dockerfile and tag the result domain-locker-local:v0.3.0.
Create persistent storage
Create the named volume used by this deployment before starting the application.
Start the application container
Run the pinned image with a predictable name, a loopback-only host port, and the persistent volume attached to the release’s documented data location.
Inspect startup before continuing
Confirm that the container remains running and review its logs before opening the application or configuring Localtonet.
Clone and pin the release
git clone https://github.com/lissy93/domain-locker.git
cd domain-locker
git checkout v0.3.0
git rev-parse --short HEAD
For the release used here, the final command should identify 7743c56. Stop if the tag resolves differently or cannot be checked out. Record the full commit with git rev-parse HEAD in your deployment notes.
Build the image
docker build --pull -t domain-locker-local:v0.3.0 .
The tag is local to your Docker host. It records the application version in a human-readable form, but the checked-out commit remains the stronger source identity. Review build errors before proceeding. Do not substitute an unpinned image merely to bypass a failed source build.
Create the volume and start the container
The v0.3.0 deployment in this guide uses the release’s documented web port and persistent data mount. Create the named volume first:
docker volume create domain-locker-data-v030
Start the application on loopback:
docker run -d \
--name domain-locker \
--restart unless-stopped \
-p 127.0.0.1:3000:3000 \
-v domain-locker-data-v030:/data \
domain-locker-local:v0.3.0
This configuration maps host port 3000 to container port 3000, attaches the persistent volume at /data, and limits direct access to the Docker host. These values are scoped to the release path described here. Revalidate them before substituting another tag because future releases can change their runtime contract.
The restart policy asks Docker to restart the container after a daemon or host restart unless an operator intentionally stopped it. If your environment uses a different service-management policy, review this option before deployment.
Confirm the effective configuration
docker ps --filter name=domain-locker
docker inspect domain-locker
docker volume inspect domain-locker-data-v030
docker logs domain-locker
Confirm that the expected image tag, loopback port binding, and volume mount appear in the inspection output. Treat the full output as potentially sensitive if you later add environment values or credentials.
This guide does not reproduce historical PostgreSQL variables, reverse-proxy settings, scheduler endpoints, or notification secrets because their current contract was not established by the reviewed release evidence. Use only configuration documented for the exact Domain Locker version you deploy.
Verify Domain Locker locally
A running container is only the first checkpoint. Verify the HTTP endpoint, complete the visible application setup, test authentication, and confirm that data survives a normal restart.
Check the local endpoint
Open this address from a browser on the Docker host:
http://127.0.0.1:3000
You can also test the endpoint from the command line:
curl -I http://127.0.0.1:3000
An HTTP response confirms that a web server is reachable. The exact status can depend on application routing and authentication, so evaluate the returned headers together with the browser behavior and container logs. A refused connection, reset, or timeout means the local service is not ready for tunneling.
Complete the installed version’s setup flow
Follow the onboarding or account prompts displayed by your own installation. Do not use credentials shown for Domain Locker’s public demonstration site. Demo credentials belong to that hosted demonstration and are not established as universal self-hosted defaults.
Before remote publication, verify that the application requires the expected authentication. Sign out, reopen the local URL, and sign in again. If you intend to configure SSO or two-factor authentication, complete and test that work locally first.
Test ordinary persistence
Create a small non-sensitive test record through the interface, then restart the container:
docker restart domain-locker
docker ps --filter name=domain-locker
docker logs --tail 100 domain-locker
Reopen the local dashboard and confirm that the test record remains. This verifies the normal container restart path and the mounted volume, but it does not prove that your backup is usable. The next section performs a separate restoration test.
Do not create a public endpoint until the local application starts reliably, responds over HTTP, requires authentication, and retains data after restart. This keeps Docker and application failures separate from tunnel failures.
Back up and restore the persistent volume
The selected deployment uses SQLite-backed persistent storage in a named Docker volume. To avoid copying the database while Domain Locker may be writing to it, stop the application container before creating the archive. This introduces a maintenance window, but it provides a clear consistency boundary without guessing the database filename or relying on an unverified application backup endpoint.
Create a consistent backup
Stop remote access
Stop the Localtonet tunnel if it is already configured so users cannot submit changes during maintenance.
Stop Domain Locker cleanly
Stop the application container and confirm that it is no longer running before copying the volume.
Archive the entire volume
Mount the volume read-only in a temporary utility container and create a compressed archive in a host backup directory.
Restart and verify production
Start Domain Locker again, check its logs, and confirm that the local dashboard still works.
mkdir -p "$PWD/backups"
docker stop domain-locker
docker run --rm \
-v domain-locker-data-v030:/source:ro \
-v "$PWD/backups:/backup" \
alpine:3.20 \
sh -c 'cd /source && tar czf /backup/domain-locker-v0.3.0-volume.tgz .'
docker start domain-locker
docker logs --tail 100 domain-locker
The temporary utility image is pinned to alpine:3.20 rather than an unspecified tag. Copy the resulting archive to storage separate from the Docker host and protect it as sensitive data. Domain portfolio records can expose infrastructure, provider, cost, ownership, and operational information.
Restore into an isolated volume
Do not overwrite the production volume merely to test recovery. Create a new volume, restore the archive into it, and start a separate container on a different loopback port:
docker volume create domain-locker-restore-test
docker run --rm \
-v domain-locker-restore-test:/restore \
-v "$PWD/backups:/backup:ro" \
alpine:3.20 \
sh -c 'cd /restore && tar xzf /backup/domain-locker-v0.3.0-volume.tgz'
docker run -d \
--name domain-locker-restore-test \
-p 127.0.0.1:3001:3000 \
-v domain-locker-restore-test:/data \
domain-locker-local:v0.3.0
Open http://127.0.0.1:3001, sign in using the restored installation’s expected authentication, and confirm that the known test record and representative domain data are present. Review the restore-test container logs as well:
docker logs domain-locker-restore-test
curl -I http://127.0.0.1:3001
Keep the restoration isolated from the public tunnel. If the restored application can send notifications or perform external monitoring, use an appropriately controlled test host and avoid leaving the test instance running longer than necessary.
After verification, remove the test container. Remove the test volume only after confirming that you are operating on the isolated copy:
docker stop domain-locker-restore-test
docker rm domain-locker-restore-test
docker volume rm domain-locker-restore-test
The production volume in this tutorial is named domain-locker-data-v030. The restoration volume is named domain-locker-restore-test. Never remove a volume based only on a similar-looking name. Use docker volume inspect and confirm the target before deletion.
Update and roll back safely
Treat an application update as a controlled migration. Do not replace the running container with an unpinned image and hope that the existing data remains compatible. Select a release, review its release notes, build it under a new image tag, create a consistent backup, preserve all reviewed runtime options, and validate the result locally.
Prepare the update
- Read the release notes between your installed version and the proposed version.
- Check for database migrations, changed ports, changed persistent paths, renamed environment values, and authentication changes.
- Record the current image tag, source commit, port binding, volume name, restart policy, and any approved configuration.
- Create a stopped-volume backup and complete or review a recent restoration test.
- Keep the previous local image until the update has passed validation.
Fetch the release information without switching the production source directory immediately:
git fetch --tags
git tag --list
Replace NEW_VERSION below with an actual reviewed release tag. Do not use the literal placeholder:
git checkout NEW_VERSION
git rev-parse HEAD
docker build --pull -t domain-locker-local:NEW_VERSION .
Replace the container while preserving configuration
Stop the Localtonet tunnel first. Then stop and rename the existing container rather than deleting it immediately:
docker stop domain-locker
docker rename domain-locker domain-locker-v030-rollback
Start the reviewed new image using the same approved host binding, persistent volume, restart policy, and any other configuration recorded from the old container:
docker run -d \
--name domain-locker \
--restart unless-stopped \
-p 127.0.0.1:3000:3000 \
-v domain-locker-data-v030:/data \
domain-locker-local:NEW_VERSION
This command is valid only if the new release retains the same documented port and persistent path. If its release documentation changes either value, use the new release’s verified contract and update the recovery plan accordingly.
Validate before reopening remote access
docker ps --filter name=domain-locker
docker logs --tail 200 domain-locker
curl -I http://127.0.0.1:3000
Sign in locally, check representative domain records, confirm monitoring and notification settings, and test one ordinary write operation if appropriate. Start the Localtonet tunnel only after the local checks pass.
Understand rollback limits
Keeping the old container and image provides a fast application rollback, but it does not guarantee that the old release can read data modified by a newer release. If an update performs an incompatible database migration, a true rollback may require restoring the pre-update volume backup into a separate volume and reconnecting the old image to that restored copy.
Never point old and new containers at the same writable SQLite volume simultaneously. Stop one before starting the other. Once the update has operated successfully for your chosen observation period and the backup remains available, remove the old container deliberately:
docker rm domain-locker-v030-rollback
Keep or remove the old image according to your retention policy. Do not delete the persistent volume as part of routine image cleanup.
Connect Domain Locker through Localtonet
Configure remote access only after http://127.0.0.1:3000 works from the Localtonet client device. Our client establishes an outbound connection to a selected relay server and provides a public URL for the HTTP tunnel. The tunnel remains available only while the selected client is connected and the tunnel is running.
Install and run the Localtonet client
Install the current client for the operating system on a device that can reach Domain Locker. For a loopback-bound Docker port, run the client on the Docker host.
Connect the intended device
Authenticate with the device-specific token assigned to that client. Keep the token private and confirm that the intended device appears connected.
Open the HTTP tunnel workflow
Create an HTTP tunnel and choose the required Process Type. HTTP tunnels support Random Sub Domain, Custom Sub Domain, or Custom Domain, subject to current account and product availability.
Select the device token and relay server
Select the connected client’s AuthToken and a currently available server or region from the dashboard. Do not copy a hardcoded relay code from an old tutorial.
Enter the local target
When Docker and the client share a host, enter local IP address 127.0.0.1 and port 3000. For a client on another device, enter the Docker host’s deliberately reachable private address and published host port.
Create and start the tunnel
Save the configuration, then use the Start control. Creating a tunnel does not mean that it is running.
Verify the public URL
Open the assigned HTTPS address, confirm that authentication is required, sign in, and test representative read-only navigation before relying on remote access.
The current interface and account-specific options remain authoritative. See our HTTP tunnel documentation while configuring the tunnel, especially if you select a custom domain. Exact DNS requirements should be taken from the current documentation rather than an older copied record.
Select the correct target address
| Client location | Target example | Required condition |
|---|---|---|
| Client on the Docker host | 127.0.0.1:3000 |
The container publishes host port 3000 on loopback. |
| Client on another LAN device | Docker host private address and port 3000 | The Docker port listens on a reachable private interface and local policy permits access. |
| Different host-side port | The selected host-side port | The tunnel targets the published host port, not automatically the container’s internal port. |
If you map host port 8080 to container port 3000, for example, a client on the same host targets 127.0.0.1:8080. It does not target port 3000 merely because that is the container-side port.
The Domain Locker endpoint used in this workflow is a local HTTP origin. The Localtonet HTTP tunnel serves it through a public HTTPS address. Do not interpret the public scheme as proof that the local Docker listener itself uses TLS.
Secure the application and tunnel
A domain portfolio can reveal registrars, DNS providers, hosting relationships, certificate details, renewal timing, costs, notes, monitoring history, and contact information. Treat Domain Locker as sensitive administrative software.
127.0.0.1 when the Localtonet client runs on the same host.
Do not expose incomplete account setup
Finish the application’s visible onboarding flow before starting the tunnel. Confirm that an unauthenticated browser cannot access portfolio data. Use unique credentials and configure stronger authentication options when they are supported and appropriate for your selected Domain Locker release.
Keep the Docker listener narrow
The loopback mapping in this guide prevents other devices from connecting directly to the host’s Docker-published port. If a separate Localtonet client device requires LAN access, expose only the necessary private path and follow the host firewall and organizational security policy.
Localtonet removes the need for inbound public router forwarding in this workflow. It should not be used to evade authorization, acceptable-use rules, or network controls.
Protect the Localtonet device token
A device token identifies the client that runs a tunnel. Do not put it in the Domain Locker image, commit it to the project repository, include it in a backup archive unnecessarily, or reveal it in support output. Rotate or replace a token if you believe it has been exposed.
Review logs before sharing them
Domain Locker logs can contain domain names, endpoints, provider details, or application errors tied to your portfolio. Docker inspection output can also reveal configured environment values. Remove sensitive information before sending logs to another person.
Troubleshooting the deployment
The source tag does not resolve to the expected commit
Run git fetch --tags, check the selected tag, and inspect the full commit:
git status
git describe --tags --exact-match
git rev-parse HEAD
Do not continue under the assumption that a branch name is equivalent to a release tag. If you intentionally select a different version, update the image tag and operational documentation accordingly.
The Docker build fails
Review the earliest meaningful build error. Confirm that the Docker engine is running, the host can retrieve required build dependencies, the complete release source is present, and the selected release supports the host architecture. Do not solve a release-specific build failure by silently switching to an unpinned image.
Port 3000 is already allocated
Stop the conflicting service or choose another host-side port while retaining the release’s container-side port:
docker run -d \
--name domain-locker \
--restart unless-stopped \
-p 127.0.0.1:8080:3000 \
-v domain-locker-data-v030:/data \
domain-locker-local:v0.3.0
Browse to http://127.0.0.1:8080 and configure Localtonet to target port 8080.
The container exits immediately
docker ps -a --filter name=domain-locker
docker logs domain-locker
docker inspect domain-locker
Confirm that the expected image was built, the volume is mounted, the host has free storage, and no unverified configuration was added. Focus on the first relevant application error rather than only the final shutdown message.
The local browser reports connection refused
Verify that the container is running and that Docker shows the expected host binding. When Docker runs on another machine, 127.0.0.1 in your workstation browser refers to the workstation, not the Docker host.
A loopback bind intentionally rejects requests sent to the Docker host’s LAN address. Test on the Docker host, or change the binding only after deciding that private-network access is required.
Data disappears after container replacement
docker volume ls
docker volume inspect domain-locker-data-v030
docker inspect domain-locker
Confirm that the replacement container mounts the original named volume at the expected path. A new volume with a similar name does not contain the old data. Stop creating or deleting resources until you identify the original volume.
The backup archive exists but the restore test fails
Confirm that Domain Locker was stopped before the backup, the archive is readable, the restore target was empty, and the restored container uses the same application version that created the data. Review both the archive extraction output and the restore-test application logs.
An archive file’s presence does not prove recoverability. Keep the failed archive for investigation, create a new consistent backup, and repeat the isolated restoration test before relying on the process.
The local dashboard works but the public URL fails
- Request the exact target URL from the Localtonet client device.
- Confirm that the client is running and connected.
- Confirm that the tunnel uses the intended device token selection.
- Confirm that the selected relay server is currently available.
- Check the local IP address and host-side port in the tunnel.
- Confirm that the tunnel was started rather than only created.
If the client is on another device, 127.0.0.1 refers to that client device. It cannot reach a loopback-only listener on the Docker host.
The public page opens but sign-in or redirects fail
Reproduce the same action at the local URL first. If it fails locally, troubleshoot Domain Locker. If it fails only at the public URL, compare browser behavior and application logs while protecting credentials and private data.
Do not invent reverse-proxy or external-URL environment variables. Use settings documented for the exact Domain Locker version you installed.
Frequently asked questions
Why does this guide build Domain Locker from a release tag?
A release tag provides a reproducible source version. An unpinned image or moving main branch can change between installation and recovery. Recording the tag and commit also makes update review and rollback planning clearer.
Why is Docker Compose not included as a second installation method?
The reviewed evidence confirms that the repository contains default and PostgreSQL Compose files, but it does not provide enough current file content to explain every service, value, mount, dependency, and verification step accurately. An incomplete Compose path would not meet the self-contained tutorial standard.
Does Domain Locker require PostgreSQL?
Release v0.3.0 states that SQLite is the default for self-hosted data. The repository also contains a PostgreSQL-specific Compose file, which indicates a separate PostgreSQL deployment path. This tutorial does not reproduce that path because its complete current configuration was not available in the reviewed evidence.
Is a Docker volume enough to protect my data?
No. A named volume separates data from the container, but it can still be deleted, corrupted, or lost with the host. Maintain separate protected backups and verify them by restoring into an isolated volume and container.
Why must Domain Locker be stopped during this backup?
The selected release uses SQLite by default, and the backup copies the complete persistent volume. Stopping the application prevents writes during the copy and provides a conservative consistency boundary without guessing the internal database filename.
Must the Localtonet client run on the Docker host?
No, but it must be able to reach the Docker host’s published port. If the service is bound to 127.0.0.1, the client must run on the same host. A client on another device requires a deliberately reachable private host address and suitable local network permission.
Does the Domain Locker host need a public IP address?
Not for the Localtonet workflow. Our client establishes an outbound connection to a relay server, so the host does not need a public IP address or inbound router port forwarding for the tunnel.
Does creating a Localtonet tunnel start it automatically?
No. Creating the tunnel saves its configuration. The selected client must be connected and the tunnel must be started. You can later stop it while preserving the configuration or delete it when it is no longer needed.
Can I update by pulling an unpinned image?
That is not the recommended workflow here. Select a release, review its notes, build or obtain the exact intended version, create a consistent backup, preserve all approved runtime configuration, and verify locally before restarting the public tunnel.
Connect your verified Domain Locker deployment
After the pinned application works locally, authentication is confirmed, and a restoration test succeeds, create a Localtonet HTTP tunnel for controlled remote access without opening an inbound router port.
Get Started Free →Corrections & updates
Substantive changes approved by the Localtonet editorial team are listed transparently below.
Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.