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.
This commit is contained in:
parent
dce89f0c01
commit
ba47bf76a9
@ -85,6 +85,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /path/to/config:/app/config # Make sure your local config directory exists
|
- /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
|
- /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations
|
||||||
|
user: 1000:1000 # default user id
|
||||||
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
or docker run:
|
or docker run:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user