diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml index 1940dd9..ed9b2d8 100644 --- a/immich/docker-compose.yml +++ b/immich/docker-compose.yml @@ -1,23 +1,13 @@ -# -# WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose -# -# Make sure to use the docker-compose.yml of the current release: -# -# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml -# -# The compose file on main may not be compatible with the latest release. - name: immich services: immich-server: container_name: immich_server - image: ghcr.io/immich-app/immich-server:v3 + image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml - # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding + # service: cpu volumes: - # Do not edit the next line. If you want to change the media storage location on your system, edit the value of U> - /home/miker/docker/immich/library:/data - /etc/localtime:/etc/localtime:ro ports: @@ -34,12 +24,10 @@ services: immich-machine-learning: container_name: immich_machine_learning - # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. - # Example tag: ${IMMICH_VERSION:-release}-cuda - image: ghcr.io/immich-app/immich-machine-learning:v3 - # extends: # uncomment this section for hardware acceleration - see https://docs.immich.app/features/ml-hardware-ac> + image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} + # extends: # file: hwaccel.ml.yml - # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use > + # service: cpu volumes: - model-cache:/cache restart: always @@ -47,17 +35,15 @@ services: disable: false networks: - immich - - main redis: container_name: immich_redis image: docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9 healthcheck: - test: redis-cli ping || exit 1 + test: ["CMD-SHELL", "valkey-cli ping || exit 1"] restart: always networks: - immich - - main database: container_name: immich_postgres @@ -67,10 +53,7 @@ services: POSTGRES_USER: postgresadmin POSTGRES_DB: immich POSTGRES_INITDB_ARGS: '--data-checksums' - # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs - # DB_STORAGE_TYPE: 'HDD' volumes: - # Do not edit the next line. If you want to change the database storage location on your system, edit the value o> - /home/miker/docker/immich/postgres:/var/lib/postgresql/data shm_size: 128mb restart: always @@ -84,6 +67,6 @@ volumes: networks: main: - external: true # Tells Compose not to create this network + external: true immich: - external: true # Tells Compose not to create this network + driver: bridge