From cfa8bbdea4559f7a6213ffce6cbdcdb43b66dcfb Mon Sep 17 00:00:00 2001 From: Dylan Baird Date: Sun, 27 Apr 2025 14:28:36 -0400 Subject: [PATCH] Adding network for immich --- docker-compose.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a80511a..a5b309c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,11 +51,13 @@ services: ports: - "2283:2283" depends_on: - - redis - - database + - immich-redis + - immich-database restart: always healthcheck: disable: false + networks: + - immich immich-machine-learning: container_name: immich-machine-learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. @@ -71,13 +73,17 @@ services: restart: always healthcheck: disable: false - redis: - container_name: redis + networks: + - immich + immich-redis: + container_name: immich-redis image: docker.io/redis:6.2-alpine@sha256:148bb5411c184abd288d9aaed139c98123eeb8824c5d3fce03cf721db58066d8 healthcheck: test: redis-cli ping || exit 1 restart: always - database: + networks: + - immich + immich-postgres: container_name: immich-postgres image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 environment: @@ -97,3 +103,7 @@ services: command: >- postgres -c shared_preload_libraries=vectors.so -c 'search_path="$$user", public, vectors' -c logging_collector=on -c max_wal_size=2GB -c shared_buffers=512MB -c wal_compression=on restart: always + networks: + - immich +networks: + immich: