mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
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>
This commit is contained in:
parent
38bb974c64
commit
a234eeffb1
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue