전제조건
Ubuntu 24.04
Docker 설치완료
/opt/stacks/Immich 에서 작업을 진행한다.
디렉토리가 설치되어 있지 않다면
cd / 해서 root로 이동
sudo mkdir -p /opt/stacks/Immich
로 폴더를 만들어준다.
이후 cd /opt/stacks/Immich 로 해당 디렉토리로 이동
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
다운로드가 완료되면 .env 파일을 수정한다.
vim .env
하고
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
# The location where your uploaded files are stored
UPLOAD_LOCATION=./library
# The location where your database files are stored
DB_DATA_LOCATION=./postgres
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Asia/Seoul
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
TZ와 DB_PASSWORD를 자신의 것으로 바꾼다.
이후 :wq 입력해서 저장 후 종료한다.
컨테이너 생성은 아래 명령어로 한다.
docker compose up -d
Immich 웹 접근은 서버ip:2283 으로 시도한다.
도움받은 사이트: Linux에 구글포토 대체 Immich 설치하기 (2025년 최신판)