fix network issues

This commit is contained in:
Roland Schneider 2025-03-11 07:47:42 +00:00
parent cc9279100e
commit f4e2ae3839

View File

@ -40,7 +40,9 @@ services:
healthcheck: healthcheck:
disable: false disable: false
networks: networks:
traefik_traefik: - traefik_traefik
- immich
immich-machine-learning: immich-machine-learning:
container_name: immich_machine_learning container_name: immich_machine_learning
@ -54,6 +56,8 @@ services:
- model-cache:/cache - model-cache:/cache
env_file: env_file:
- .env - .env
networks:
- immich
restart: always restart: always
healthcheck: healthcheck:
disable: false disable: false
@ -64,6 +68,8 @@ services:
healthcheck: healthcheck:
test: redis-cli ping || exit 1 test: redis-cli ping || exit 1
restart: always restart: always
networks:
- immich
database: database:
container_name: immich_postgres container_name: immich_postgres
@ -76,6 +82,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:
- immich
healthcheck: healthcheck:
test: >- test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
@ -102,5 +110,6 @@ volumes:
immich: immich:
networks: networks:
immich:
traefik_traefik: traefik_traefik:
external: true external: true