2023-11-18 18:43:10 +01:00
#
2025-02-17 04:28:59 +01:00
# WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose
#
# Make sure to use the docker-compose.yml of the current release:
2023-11-18 18:43:10 +01:00
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
2023-11-18 18:49:30 +01:00
# The compose file on main may not be compatible with the latest release.
2023-11-18 18:43:10 +01:00
2023-11-10 15:43:21 +13:00
name : immich
2022-02-03 14:42:27 -06:00
services :
2022-05-08 07:07:58 -05:00
immich-server :
2022-12-30 17:30:28 +01:00
container_name : immich_server
2023-05-30 21:53:24 -04:00
image : ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
2024-05-27 17:04:07 -04:00
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
2022-02-03 14:42:27 -06:00
volumes :
2024-07-29 22:24:47 -04:00
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
2022-02-11 22:23:06 -06:00
- ${UPLOAD_LOCATION}:/usr/src/app/upload
2023-10-03 03:50:27 +02:00
- /etc/localtime:/etc/localtime:ro
2022-02-03 14:42:27 -06:00
env_file :
- .env
2023-11-17 23:13:36 -05:00
ports :
2024-10-09 16:01:52 -04:00
- '2283:2283'
2022-02-03 14:42:27 -06:00
depends_on :
- redis
- database
2022-05-21 02:23:55 -05:00
restart : always
2024-08-04 14:37:43 -04:00
healthcheck :
disable : false
2022-02-03 14:42:27 -06:00
2022-06-11 16:12:06 -05:00
immich-machine-learning :
2022-12-30 17:30:28 +01:00
container_name : immich_machine_learning
2025-03-17 17:08:19 -04:00
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
2024-01-21 18:22:39 -05:00
# Example tag: ${IMMICH_VERSION:-release}-cuda
2023-05-30 21:53:24 -04:00
image : ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
2024-01-21 18:22:39 -05:00
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
2025-03-17 17:08:19 -04:00
# service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
2022-03-27 14:58:54 -05:00
volumes :
2023-02-18 09:13:37 -06:00
- model-cache:/cache
2022-03-27 14:58:54 -05:00
env_file :
- .env
2022-05-21 02:23:55 -05:00
restart : always
2024-08-04 14:37:43 -04:00
healthcheck :
disable : false
2022-05-21 02:23:55 -05:00
2022-02-03 14:42:27 -06:00
redis :
container_name : immich_redis
2025-06-17 11:57:42 +01:00
image : docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
2024-05-22 05:28:12 -04:00
healthcheck :
test : redis-cli ping || exit 1
2022-05-21 02:23:55 -05:00
restart : always
2022-02-03 14:42:27 -06:00
database :
container_name : immich_postgres
2025-06-24 11:19:40 +01:00
image : ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:5f6a838e4e44c8e0e019d0ebfe3ee8952b69afc2809b2c25f7b0119641978e91
2022-02-03 14:42:27 -06:00
environment :
POSTGRES_PASSWORD : ${DB_PASSWORD}
POSTGRES_USER : ${DB_USERNAME}
POSTGRES_DB : ${DB_DATABASE_NAME}
2024-05-11 11:11:14 -04:00
POSTGRES_INITDB_ARGS : '--data-checksums'
2025-05-21 16:46:55 +01:00
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
# DB_STORAGE_TYPE: 'HDD'
2022-02-03 14:42:27 -06:00
volumes :
2024-07-29 22:24:47 -04:00
# 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
2024-04-08 22:11:25 +02:00
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
2025-06-25 15:38:37 -04:00
shm_size : 128mb
2024-05-22 05:28:12 -04:00
restart : always
2022-06-11 16:12:06 -05:00
2022-02-03 14:42:27 -06:00
volumes :
2023-02-18 09:13:37 -06:00
model-cache :