From 5cc0806400d79da926dd5f195f646f84b84966ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Kl=C3=A4rner?= Date: Thu, 14 Jul 2022 14:31:41 +0200 Subject: [PATCH] make docker-based setup easier Generating the config and the registration becomes easier, when directory and config files are kept at the UID/GID of the current user. In step 6 it's better to keep the chown, so the bridge runs with a different user. --- bridges/general/docker-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/general/docker-setup.md b/bridges/general/docker-setup.md index cefcf4d..0d45158 100644 --- a/bridges/general/docker-setup.md +++ b/bridges/general/docker-setup.md @@ -44,7 +44,7 @@ arm64 images. Replace `` with the version you want to run (e.g. `latest` or `v0.6.0`). 2. Run the container for the first time, so it can create a config file for you: ``` - docker run --rm -v `pwd`:/data:z dock.mau.dev/mautrix/$bridge: + docker run --rm --env UID=$(id -u) --env GID=$(id -g) -v `pwd`:/data:z dock.mau.dev/mautrix/$bridge: ``` 3. Update the config to your liking. You'll at least need to change the homeserver settings, appservice address, database address and bridge