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:
João Paulo dos Santos Portela 2023-08-21 16:53:26 +01:00 committed by GitHub
parent dce89f0c01
commit ba47bf76a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: