# Self-host Domoticz

> A home automation system with a web UI that links sensors, switches and many device protocols.

- Page: https://levelrail.com/templates/domoticz/
- JSON: https://levelrail.com/templates/domoticz.json
- Category: Applications
- Licence: GPL-3.0-only (Copyleft license)
- Source: https://github.com/domoticz/domoticz
- Upstream docs: https://www.domoticz.com/wiki/

## Requirements
- Memory: about 256 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: ece392300d055395cac0b4edea4451b31f765ff5339e5597ca77371be8d7e93a

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| domoticz | domoticz/domoticz:2026.4@sha256 | ece392300d055395cac0b4edea4451b31f765ff5339e5597ca77371be8d7e93a | 8080 | userdata -> /opt/domoticz/userdata |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| domoticz | TZ | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install domoticz --name my-domoticz
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain domoticz=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/domoticz/install \
  -d '{
    "name": "my-domoticz"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## First run
1. Open the address, then set a login under Setup and Settings and add your hardware.

## Questions

### Can I deploy Domoticz on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Domoticz, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image domoticz/domoticz:2026.4@sha256:ece392300d055395cac0b4edea4451b31f765ff5339e5597ca77371be8d7e93a is what you deploy there.

Self-host Domoticz, Domoticz docker compose file, deploy Domoticz on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
