From 480fcaf6b9cd39ab0c93dfe6c4f547e5367e7447 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sun, 24 Mar 2024 07:14:05 -0700 Subject: [PATCH] Add Immich to separate network in order to prevent clashes with WSL host --- immich.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/immich.yaml b/immich.yaml index 13e567a..ee8df34 100644 --- a/immich.yaml +++ b/immich.yaml @@ -12,6 +12,8 @@ services: - REDIS_HOSTNAME=immich-redis volumes: - /Photos:/usr/src/app/upload + networks: + - immich ports: - 2283:3001 depends_on: @@ -30,6 +32,8 @@ services: - REDIS_HOSTNAME=immich-redis volumes: - /Photos:/usr/src/app/upload + networks: + - immich depends_on: - redis - database @@ -39,10 +43,14 @@ services: image: ghcr.io/immich-app/immich-machine-learning:release volumes: - /immich/model-cache:/cache + networks: + - immich restart: unless-stopped redis: container_name: immich-redis image: redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5 + networks: + - immich restart: unless-stopped database: container_name: immich-postgres @@ -53,4 +61,12 @@ services: POSTGRES_DB: volumes: - /immich/postgres:/var/lib/postgresql/data - restart: unless-stopped \ No newline at end of file + networks: + - immich + restart: unless-stopped +networks: + immich: + name: immich + ipam: + config: + - subnet: \ No newline at end of file