Skip to content

Quick start

github-actions[bot] edited this page Dec 6, 2026 · 1 revision

You need Docker with the Compose plugin.

mkdir homevault && cd homevault

cat > docker-compose.yml <<'EOF'
services:
  homevault:
    image: ghcr.io/jnanadarshan/homevault:latest
    container_name: homevault
    restart: unless-stopped
    ports:
      - "5959:5959"
    volumes:
      # Left side: any folder on the host (database, images, backups), e.g.
      #   /home/youruser/appdata/homevault:/homevault
      - ./data:/homevault
      - /etc/localtime:/etc/localtime:ro  # time zone for backup schedules
    # PUID/PGID: owner of the files in the data folder (run `id` for yours).
    environment:
      - PUID=1000
      - PGID=1000
      - LOG_LEVEL=warn

    # Hardening. Never use "privileged: true".
    cap_drop: [ALL]
    cap_add:  # start-up supervisor only
      - CHOWN
      - DAC_OVERRIDE
      - SETUID
      - SETGID
      - KILL
    security_opt: ["no-new-privileges:true"]
    read_only: true
    tmpfs: [/tmp, /run, /data/backups]
    pids_limit: 256

    # Limits sized for a Raspberry Pi
    mem_limit: 1g
    cpus: 2
    logging:
      driver: json-file
      options: { max-size: "10m", max-file: "3" }
EOF

docker compose up -d

In the data volume, change only the left side: it can be any folder dedicated to HomeVault, such as /home/youruser/appdata/homevault. Keep /homevault on the right. If your user or group id isn't 1000 (run id), change PUID and PGID; the contents of the folder are handed to them at start.

Open http://localhost:5959, or http://<server-ip>:5959 from another device.

To look around first, go to Settings → General → Test Data → Populate Test Data. It adds 100 sample items in a demo house, and you can remove them again with one click.

Next steps

Clone this wiki locally