안녕하세요.
우리는 지난번까지 WSL 셋팅과 우분투 설치, 그리고 Docker Desktop 설치를 완료 했습니다.
이제 immich 설치와 실행해 보겠습니다.
1. WSL 관리자 권한으로 실행 (윈도우 시작키 눌러 w 입력하면 나옴)
그리고, immich 홈페이지의 내용을 다짜고짜 복붙했습니다.
Docker Compose [Recommended]
Docker Compose is the recommended method to run Immich in production. Below are the steps to deploy Immich with Docker Compose.
Step 1 - Download the required files
Create a directory of your choice (e.g. ./immich-app) to hold the docker-compose.yml and .env files.
① Move to the directory you created
mkdir ./immich-app
cd ./immich-app
②Download docker-compose.yml and example.env by running the following commands:
Get docker-compose.yml file
wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
Get .env file
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env
그리고 건너뛰기.. (환경설정은 나중에)
You can alternatively download these two files from your browser and move them to the directory that you created, in which case ensure that you rename
example.env
to
.env
.
Step 2 - Populate the .env file with custom values
Default environmental variable content
# 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. Network shares are not supported for the database
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=Etc/UTC
# 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
Populate UPLOAD_LOCATION with your preferred location for storing backup assets. It should be a new directory on the server with enough free space.
Consider changing DB_PASSWORD to a custom value. Postgres is not publicly exposed, so this password is only used for local authentication. To avoid issues with Docker parsing this value, it is best to use only the characters A-Za-z0-9. pwgen is a handy utility for this.
Set your timezone by uncommenting the TZ= line.
Populate custom database information if necessary.
Step 3 - Start the containers
From the directory you created in Step 1 (which should now contain your customized
docker-compose.yml
and
.env
files), ③run the following command to start Immich as a background service:
Start the containers
docker compose up -d
자......정리하면
①, ②, ③ 아래에 있는 초록색 명령어만 순서대로 잘 실행하면 됩니다.
대략적으로
"폴더를 만든다 -> 환경설정파일을 다운로드한다 -> 메인 구동파일을 다운받아 실행한다 " 로 요약할 수 있습니다.
다음에는 결과화면과 immich 기본셋팅을 보도록 하겠습니다.
To be continue...
P.S
이 글은 A/S 가 필요할것 같아요. 오늘(9/8) 집에가서 할게요^^