Adding network for immich
This commit is contained in:
parent
710db95a35
commit
cfa8bbdea4
1 changed files with 15 additions and 5 deletions
|
@ -51,11 +51,13 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "2283:2283"
|
- "2283:2283"
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- immich-redis
|
||||||
- database
|
- immich-database
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
|
networks:
|
||||||
|
- immich
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
container_name: immich-machine-learning
|
container_name: immich-machine-learning
|
||||||
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
|
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
|
||||||
|
@ -71,13 +73,17 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
redis:
|
networks:
|
||||||
container_name: redis
|
- immich
|
||||||
|
immich-redis:
|
||||||
|
container_name: immich-redis
|
||||||
image: docker.io/redis:6.2-alpine@sha256:148bb5411c184abd288d9aaed139c98123eeb8824c5d3fce03cf721db58066d8
|
image: docker.io/redis:6.2-alpine@sha256:148bb5411c184abd288d9aaed139c98123eeb8824c5d3fce03cf721db58066d8
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: redis-cli ping || exit 1
|
test: redis-cli ping || exit 1
|
||||||
restart: always
|
restart: always
|
||||||
database:
|
networks:
|
||||||
|
- immich
|
||||||
|
immich-postgres:
|
||||||
container_name: immich-postgres
|
container_name: immich-postgres
|
||||||
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
|
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
|
||||||
environment:
|
environment:
|
||||||
|
@ -97,3 +103,7 @@ services:
|
||||||
command: >-
|
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
|
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
|
restart: always
|
||||||
|
networks:
|
||||||
|
- immich
|
||||||
|
networks:
|
||||||
|
immich:
|
||||||
|
|
Loading…
Reference in a new issue