services: homarr: image: ghcr.io/homarr-labs/homarr:latest container_name: homarr restart: unless-stopped environment: # Required. Generate with: openssl rand -hex 32 - SECRET_ENCRYPTION_KEY=${SECRET_ENCRYPTION_KEY:?encryption key required} ports: - "${HTTP_PORT:-7575}:7575" volumes: - ${DATA_PATH:-/srv/homarr}:/appdata # Optional: lets Homarr show container status - /var/run/docker.sock:/var/run/docker.sock:ro