Add user and restart options to docker-compose (#1844)

* Add user and restart options to docker-compose

Add user:group 1000:1000 to the docker compose, to match host user.
Restart container unless stopped.

* Update README.md

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
pull/1852/head
João Paulo dos Santos Portela 9 months ago committed by GitHub
parent 38bb974c64
commit a234eeffb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,6 +85,8 @@ services:
volumes:
- /path/to/config:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations
# user: 1000:1000 optional, not compatibile with direct socket see https://gethomepage.dev/en/configs/docker/#using-socket-directly
restart: unless-stopped
```
or docker run:

Loading…
Cancel
Save