feat(labrinth): add config to run it with Compose, alongside services (#4153)

This commit is contained in:
Alejandro González
2025-08-09 23:04:31 +02:00
committed by GitHub
parent 58645b9ba9
commit 80eb297284
3 changed files with 159 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ The majority of configuration is done at runtime using [dotenvy](https://crates.
During development, you might notice that changes made directly to entities in the PostgreSQL database do not seem to take effect. This is often because the Redis cache still holds outdated data. To ensure your updates are reflected, clear the cache by e.g. running `redis-cli FLUSHALL`, which will force labrinth to fetch the latest data from the database the next time it is needed.
You can also start labrinth and its backing services at once using `docker compose --profile with-labrinth up`, which will build and start labrinth through its Docker image as if it was yet another service container. To have that container be automatically rebuilt during development as changes to the source code are made, add the `--watch` flag, which enables [Compose Watch](https://docs.docker.com/compose/how-tos/file-watch/). Keep in mind, however, that Compose Watch is bound to be slower than other similar solutions that work outside of a container, particularly on Windows or macOS, where Docker runs in a virtual machine.
<details>
<summary>.env variables & command line options</summary>