To install Immich with Docker Compose, save the release’s docker-compose.yml and example.env in the same directory, naming the latter .env. Set UPLOAD_LOCATION to a new folder for media and DB_DATA_LOCATION to the folder for Postgres data. Run docker compose up -d from that directory. Immich Docker Compose installation
Download the release files
Immich requires Docker with the Compose plugin. Run docker compose version to check that the command is available. Immich requirements · Docker Compose version reference
Create a project directory and download the two files from the latest Immich release. The second download saves example.env as .env. Immich Docker Compose installation
mkdir ./immich-app
cd ./immich-app
wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env
You can also download both files in your browser from the installation page, move them into the same directory, and rename example.env to .env. Immich Docker Compose installation
Set the media and database paths in .env
These are the paths in the supplied .env file. With Compose running locally, they resolve to the library and postgres directories beside docker-compose.yml. Immich Docker Compose installation · Docker Compose bind mounts
UPLOAD_LOCATION=./library
DB_DATA_LOCATION=./postgres
For uploads on a separate drive, set UPLOAD_LOCATION to the full host path of a new directory with enough space. For example, if that directory is /custom/path/immich/immich_files, use the line below. The mount appears at /data inside the container. Immich Docker Compose installation · Immich custom file locations
UPLOAD_LOCATION=/custom/path/immich/immich_files
To scan a photo folder you already have, use an external library. Immich external libraries
For DB_PASSWORD, consider a random password made up of ASCII letters and digits (A-Za-z0-9). Immich Docker Compose installation
Check storage permissions
- Media. Immich needs read and write access to the folders in its storage mount. At startup it checks whether it can create, read, and overwrite hidden
.immichmarker files. Immich stops startup if it cannot complete the required file operations. Immich System Integrity - Postgres. Choose a local filesystem that supports user and group ownership and permissions. Keep the database off network shares. Immich requirements
Use a Docker volume if the database bind mount points to an incompatible filesystem on Windows or a mounted host directory in WSL. Set DB_DATA_LOCATION=pgdata in .env. In docker-compose.yml, add pgdata: under the existing top-level volumes: block as shown. Immich Windows storage requirements
volumes:
model-cache:
pgdata:
Start Immich and register the administrator
From the directory containing docker-compose.yml and .env, start the stack in the background. Immich Docker Compose installation
docker compose up -d
Open http://<machine-ip-address>:2283 using your server’s IP address. Select Getting Started and follow the prompts to create the first account, which becomes the administrator. Sign in and try uploading a picture from your browser. Immich quick start
Troubleshoot first startup
If the web app fails to load after startup, check the container status and logs. --all includes stopped containers. Docker Compose ps · Docker Compose logs
docker compose ps --all
docker compose logs
- Compose reports permission denied while opening
.env. Check the Docker installation. Immich’s installation guide identifies this as a possible symptom of an incompatible Docker version and links to Docker’s installation procedure. Immich Docker Compose troubleshooting - Immich logs a storage check error. Check that the bind mount points to the intended host folder and the server can read and write there. If a previously created
.immichmarker is missing, check whether the mount changed. Immich System Integrity
After correcting .env during setup, run docker compose up -d again. Compose usually recreates the affected containers when it detects the change. If Compose does not recreate the affected containers, try docker compose up -d --force-recreate. Immich environment variables
Evidence and limits. Immich’s v3 installation and storage documentation and the Docker Compose reference were checked on November 26, 2026. The installation steps were not run for this guide.