Install Immich server foto dengan docker: Difference between revisions

From Dboswiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Step -1 Installing Docker'''
'''STEP 1- INSTALLING DOCKER'''


<code>sudo apt update</code>
<code>apt update</code>


<code>sudo apt install apt-transport-https ca-certificates curl software-properties-common</code>
<code>apt install apt-transport-https ca-certificates curl software-properties-common</code>


<code>curl -fsSL <nowiki>https://download.docker.com/linux/ubuntu/gpg</nowiki> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
<code>curl -fsSL <nowiki>https://download.docker.com/linux/ubuntu/gpg</nowiki> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg</code>


<code>echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] <nowiki>https://download.docker.com/linux/ubuntu</nowiki> $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
<code>echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] <nowiki>https://download.docker.com/linux/ubuntu</nowiki> $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null</code>


<code>sudo apt update
<code>apt update</code>


<code>apt-cache policy docker-ce
<code>apt-cache policy docker-ce</code>


Output yang diharapkan dengan perintah di atas :
<code>apt install docker-ce</code>


docker-ce:
<code>systemctl status docker</code>


  Installed: (none)


  Candidate: 5:20.10.14~3-0~ubuntu-jammy


  Version table:
'''STEP 2 -INSTALLING IMMICH'''


     5:20.10.14~3-0~ubuntu-jammy 500
Create Directory


        500 <nowiki>https://download.docker.com/linux/ubuntu</nowiki> jammy/stable amd64 Packages
<code>mkdir ./immich-app</code>


     5:20.10.13~3-0~ubuntu-jammy 500
mkdir ./immich-app


        500 <nowiki>https://download.docker.com/linux/ubuntu</nowiki> jammy/stable amd64 Packages
cd ./immich-app




Finally, install Docker:


<code>sudo apt install docker-ce
Download <code>docker-compose.yml</code> and <code>example.env</code> by running the following commands:


<code>sudo systemctl status docker
wget -O docker-compose.yml <nowiki>https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml</nowiki>


wget -O .env <nowiki>https://github.com/immich-app/immich/releases/latest/download/example.env</nowiki>


Step-2 Installing Immich
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 <code>example.env</code> to <code>.env</code>.


Creatte Directory for Immich
Ingat yang perlu diganti adalah db_password pada .env file


<code>mkdir ./immich-app


<code>cd ./immich-app
'''STEP 3 - DOCKER COMPOSE UP'''
 
docker compose up -d
 
(ingat perintahnya adalah docker compose bukan docker-compose)
 
 
Running Immich dengan cara : To register for the admin user, access the web application at <code>http://<machine-ip-address>:2283</code>
 
Sumber :
 
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04
 
https://immich.app/docs/install/docker-compose/

Latest revision as of 09:19, 21 May 2025

STEP 1- INSTALLING DOCKER

apt update

apt install apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

apt update

apt-cache policy docker-ce

apt install docker-ce

systemctl status docker


STEP 2 -INSTALLING IMMICH

Create Directory

mkdir ./immich-app

mkdir ./immich-app

cd ./immich-app


Download docker-compose.yml and example.env by running the following commands:

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 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.

Ingat yang perlu diganti adalah db_password pada .env file


STEP 3 - DOCKER COMPOSE UP

docker compose up -d

(ingat perintahnya adalah docker compose bukan docker-compose)


Running Immich dengan cara : To register for the admin user, access the web application at http://<machine-ip-address>:2283

Sumber :

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04

https://immich.app/docs/install/docker-compose/