docker-compose.yml (2800B)
1 # 2 # WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose 3 # 4 # Make sure to use the docker-compose.yml of the current release: 5 # 6 # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml 7 # 8 # The compose file on main may not be compatible with the latest release. 9 10 name: immich 11 12 services: 13 immich-server: 14 container_name: immich_server 15 image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} 16 # extends: 17 # file: hwaccel.transcoding.yml 18 # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding 19 volumes: 20 # 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 21 - ${UPLOAD_LOCATION}:/data 22 - /etc/localtime:/etc/localtime:ro 23 env_file: 24 - .env 25 ports: 26 - '2283:2283' 27 depends_on: 28 - redis 29 - database 30 restart: always 31 healthcheck: 32 disable: false 33 34 immich-machine-learning: 35 container_name: immich_machine_learning 36 # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. 37 # Example tag: ${IMMICH_VERSION:-release}-cuda 38 image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} 39 # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration 40 # file: hwaccel.ml.yml 41 # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable 42 volumes: 43 - model-cache:/cache 44 env_file: 45 - .env 46 restart: always 47 healthcheck: 48 disable: false 49 50 redis: 51 container_name: immich_redis 52 image: docker.io/valkey/valkey:8-bookworm@sha256:5b8f8c333bef895c925f56629d6ba90aea95a4f7391f62411e625267c600b19c 53 healthcheck: 54 test: redis-cli ping || exit 1 55 restart: always 56 57 database: 58 container_name: immich_postgres 59 image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:32324a2f41df5de9efe1af166b7008c3f55646f8d0e00d9550c16c9822366b4a 60 environment: 61 POSTGRES_PASSWORD: ${DB_PASSWORD} 62 POSTGRES_USER: ${DB_USERNAME} 63 POSTGRES_DB: ${DB_DATABASE_NAME} 64 POSTGRES_INITDB_ARGS: '--data-checksums' 65 # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs 66 # DB_STORAGE_TYPE: 'HDD' 67 volumes: 68 # 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 69 - ${DB_DATA_LOCATION}:/var/lib/postgresql/data 70 shm_size: 128mb 71 restart: always 72 73 volumes: 74 model-cache: