From 540e568e9d29abbf4306c4ff761614bb5cc93291 Mon Sep 17 00:00:00 2001 From: FedericoCalzoni <56981117+FedericoCalzoni@users.noreply.github.com> Date: Mon, 13 May 2024 18:49:30 +0200 Subject: [PATCH] docs: update external-library.md (#9420) * Update external-library.md I believe that displaying the code for both sections, even if it seems a bit repetitive, can help prevent fast readers from overlooking it * Apply suggestions from code review Co-authored-by: Matthew Momjian <50788000+mmomjian@users.noreply.github.com> --------- Co-authored-by: Matthew Momjian <50788000+mmomjian@users.noreply.github.com> --- docs/docs/guides/external-library.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/docs/guides/external-library.md b/docs/docs/guides/external-library.md index b1d4b67b2e..042f3900cc 100644 --- a/docs/docs/guides/external-library.md +++ b/docs/docs/guides/external-library.md @@ -6,15 +6,19 @@ in a directory on the same machine. # Mount the directory into the containers. -Edit `docker-compose.yml` to add two new mount points under `volumes:` +Edit `docker-compose.yml` to add two new mount points in the sections `immich-server:` and `immich-microservices:` under `volumes:` -``` - immich-server: +```diff +immich-server: volumes: - - ${EXTERNAL_PATH}:/usr/src/app/external ++ - ${EXTERNAL_PATH}:/usr/src/app/external + +immich-microservices: + volumes: ++ - ${EXTERNAL_PATH}:/usr/src/app/external ``` -Be sure to add exactly the same line to both `immich-server:` and `immich-microservices:`. +Be sure to add exactly the same path to both services. Edit `.env` to define `EXTERNAL_PATH`, substituting in the correct path for your computer: