Docker & Self-Hosting
To go further, you can self-host your own services: MariaDB for your data, Traefik for your domain names, and all your critical services locally.
Docker Compose — The Starter Kit
Docker allows you to run services in isolated containers. Docker Compose lets you define all your services in a single file.
version: "3.8"
services:
homeassistant:
image: homeassistant/home-assistant:stable
container_name: homeassistant
network_mode: host
volumes:
- /opt/ha/config:/config
restart: unless-stopped
traefik:
image: traefik:v3.0
ports:
- 80:80
- 443:443Why Self-Host?
Your data stays on your hardware. No subscription, no vendor lock-in, full control over updates and configuration.
