This commit is contained in:
traveler 2025-01-26 21:55:17 -06:00
parent 95f877d822
commit 58507a995d

View file

@ -23,6 +23,8 @@ services:
- .env - .env
ports: ports:
- '2283:2283' - '2283:2283'
networks:
- netgrimoire
depends_on: depends_on:
- redis - redis
- database - database
@ -43,12 +45,16 @@ services:
env_file: env_file:
- .env - .env
restart: always restart: always
networks:
- netgrimoire
healthcheck: healthcheck:
disable: false disable: false
redis: redis:
container_name: immich_redis container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:905c4ee67b8e0aa955331960d2aa745781e6bd89afc44a8584bfd13bc890f0ae image: docker.io/redis:6.2-alpine@sha256:905c4ee67b8e0aa955331960d2aa745781e6bd89afc44a8584bfd13bc890f0ae
networks:
- netgrimoire
healthcheck: healthcheck:
test: redis-cli ping || exit 1 test: redis-cli ping || exit 1
restart: always restart: always
@ -64,6 +70,8 @@ services:
volumes: volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
networks:
- netgrimoire
healthcheck: healthcheck:
test: >- test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
@ -86,3 +94,7 @@ services:
volumes: volumes:
model-cache: model-cache:
networks:
netgrimoire:
external: true