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