Black WeeksZero Pro €39 €79Claim offer →
TOMMY
Installation

Docker Installation

TOMMY Zero can be run as a standalone Docker container for self-hosted setups and users who want to run it independently of Home Assistant.

Requirements

  • Linux host (Windows/macOS Docker not supported)
  • AMD64 or ARM64 architecture
  • Host networking
  • Docker installed and running

Linux Host Required

TOMMY Zero Docker container requires a Linux host. Docker on Windows (including WSL2) and macOS are not supported.

Installation

Docker Compose provides an easier way to manage TOMMY Zero with a configuration file.

Quick Start:

  1. Create a docker-compose.yml file with the following content:
services:
  tommy:
    image: tommysense/virtual-bridge:latest
    container_name: tommy
    network_mode: host
    restart: unless-stopped
    environment:
      DASHBOARD_PORT: 8089          # Web Dashboard
      FILE_SERVER_HTTP_PORT: 8090   # Configuration file and OTA
      FILE_SERVER_HTTPS_PORT: 8091  # Configuration file and OTA
      MQTT_PORT: 1886               # Built-in MQTT broker
      UDP_RELAY_PORT: 8547          # Device communication
    volumes:
      - ~/.tommy:/data
  1. Start the container:
docker compose up -d
  1. Stop the container:
docker compose down
  1. Update TOMMY Zero:
docker compose down && docker compose pull && docker compose up -d

Docker Run

Alternatively, you can run TOMMY Zero directly with Docker:

docker run -d --name tommy \
  --network host \
  -v $HOME/.tommy:/data \
  -e DASHBOARD_PORT=8089 \
  -e FILE_SERVER_HTTP_PORT=8090 \
  -e FILE_SERVER_HTTPS_PORT=8091 \
  -e MQTT_PORT=1886 \
  -e UDP_RELAY_PORT=8547 \
  --restart unless-stopped \
  tommysense/virtual-bridge:latest

Configuration Options

You can customize TOMMY Zero's behavior using environment variables:

Environment VariableDefaultDescription
DASHBOARD_PORT8089Web dashboard
FILE_SERVER_HTTP_PORT8090Configuration file and OTA
FILE_SERVER_HTTPS_PORT8091Configuration file and OTA
MQTT_PORT1886Built-in MQTT broker
UDP_RELAY_PORT8547Device communication
ALLOWED_ORIGINS(empty)Comma-separated addresses the dashboard may be opened on, such as https://tommy.example.com. Only needed behind a reverse proxy that changes the host name without setting X-Forwarded-Host

Release Channels

The latest tag follows stable releases. To try pre-release versions, use the beta tag instead:

    image: tommysense/virtual-bridge:beta

The beta tag receives every pre-release and also every stable release, so beta users automatically converge onto stable when it ships. To control updates manually, pin an exact version instead (for example tommysense/virtual-bridge:6.0.0).

Important Notes

Host Networking Requirement

TOMMY Zero requires host networking (--network host or network_mode: host in docker-compose.yml) because devices use mDNS for auto-discovery, which requires host networking.

Keep It on Your Local Network

By design, the dashboard and the MQTT broker are open to everyone on your local network, so only devices on a network you trust should reach them. Don't forward their ports on your router. If you put the dashboard behind a reverse proxy that is reachable from the internet, add authentication in the proxy. See Trusted local network.

Data Persistence

The volume mount (-v $HOME/.tommy:/data or ~/.tommy:/data in docker-compose.yml) ensures configuration, zone settings, firmware files, and logs persist across container restarts.

Accessing the Dashboard

After starting the container, access the TOMMY Zero dashboard at:

http://localhost:8089

Or replace localhost with your server's IP address if accessing remotely.

Managing the Container

View Logs

docker logs tommy

Stop the Container

docker stop tommy

Start the Container

docker start tommy

Update TOMMY Zero

Using Docker Compose:

docker compose down && docker compose pull && docker compose up -d

Using Docker Run:

# Stop and remove the old container
docker stop tommy
docker rm tommy

# Pull the latest image
docker pull tommysense/virtual-bridge:latest

# Start with the same configuration
docker run -d --name tommy \
  --network host \
  -v $HOME/.tommy:/data \
  -e DASHBOARD_PORT=8089 \
  -e FILE_SERVER_HTTP_PORT=8090 \
  -e FILE_SERVER_HTTPS_PORT=8091 \
  -e MQTT_PORT=1886 \
  -e UDP_RELAY_PORT=8547 \
  --restart unless-stopped \
  tommysense/virtual-bridge:latest

Troubleshooting

  • Ensure you're running on a Linux host (not Windows/macOS Docker Desktop)
  • Check that --network host (or network_mode: host in docker-compose.yml) is specified
  • Verify no port conflicts with other services
  • Check container logs with docker logs tommy