services:homepage:image:ghcr.io/gethomepage/homepage:latestcontainer_name:homepageports:-3000:3000volumes:-/path/to/config:/app/config# Make sure your local config directory exists-/var/run/docker.sock:/var/run/docker.sock# (optional) For docker integrationsenvironment:HOMEPAGE_ALLOWED_HOSTS:gethomepage.dev# required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
Running as non-root
By default, the Homepage container runs as root. Homepage also supports running your container as non-root via the standard PUID and PGID environment variables. When using these variables, make sure that any volumes mounted in to the container have the correct ownership and permissions set.
Using the docker socket directly is not the recommended method of integration and requires either running homepage as root or that the user be part of the docker group
In the docker compose example below, the environment variables $PUID and $PGID are set in a .env file.
services:homepage:image:ghcr.io/gethomepage/homepage:latestcontainer_name:homepageports:-3000:3000volumes:-/path/to/config:/app/config# Make sure your local config directory exists-/var/run/docker.sock:/var/run/docker.sock# (optional) For docker integrations, see alternative methodsenvironment:HOMEPAGE_ALLOWED_HOSTS:gethomepage.dev# required, may need port. See gethomepage.dev/installation/#homepage_allowed_hostsPUID:$PUIDPGID:$PGID