Skip to content

Deployment ​

Basic Deployment ​

The simplest way to run HomeGantry — exposed on a port with a named volume for persistence.

yaml
# docker-compose.yml
services:
  homegantry:
    image: ghcr.io/geraldvd/homegantry:latest
    container_name: homegantry
    ports:
      - '3000:3000'
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - homegantry_data:/data
    environment:
      - HOMEGANTRY_HOST=192.168.1.100
    restart: unless-stopped

volumes:
  homegantry_data:
bash
docker compose up -d

Access at http://your-server-ip:3000.

With Traefik ​

See the Reverse Proxy guide for Traefik-specific configuration.

Public demo ​

To show HomeGantry without a real lab, run it in demo mode (HOMEGANTRY_DEMO=true): no socket, no volumes, always read-only. examples/compose.demo.yaml starts it with one command and a locked-down container; the demo guide shows how to put it behind a reverse proxy.

Which image tag ​

Images are multi-arch (linux/amd64 and linux/arm64). Pin a minor version, e.g. ghcr.io/geraldvd/homegantry:0.3: it gets fixes but no breaking changes. latest follows releases (not every merge to main), so before 1.0 it can jump to a version with breaking changes. main is the development build. All tags: Releases and upgrading.

Updating ​

Read the changelog for the new version, set the tag if you pin one, then pull the image and recreate the container:

bash
docker compose pull
docker compose up -d

Your data is preserved in the named volume. More in Releases and upgrading.

Volumes ​

HomeGantry needs two volume mounts:

MountPurpose
/var/run/docker.sockRequired. Read-only access to the Docker daemon for container discovery.
/dataRecommended. Persistent storage for overrides, manual services, settings, and stack configs. Without this, customizations are lost on container recreation.

Security Notes ​

  • HomeGantry is read-only by default. To edit from the UI, set HOMEGANTRY_ADMIN_TOKEN or use a forward-auth header; see the Security model.
  • HomeGantry never modifies containers. Even so, prefer a read-only socket proxy over mounting /var/run/docker.sock directly.
  • If the list of services itself is sensitive, put HomeGantry behind a reverse proxy with authentication (see Reverse Proxy).

Released under the MIT License.