Install Docker
- Log into the Linux device
- Execute the following commands in a terminal:
# update software repositories
sudo apt update
# install necessary packages for https apt calls
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# add docker GPG key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
# install docker
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
# create a docker group
sudo groupadd docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# make docker-compose executable
sudo chmod +x /usr/local/bin/docker-compose
Running the LibrePhoto Docker Container
- After installing Docker, continue with the following commands in terminal:
# download librephotos compose.yml and sample .env
wget https://raw.githubusercontent.com/LibrePhotos/librephotos/dev/docker-compose.yml
wget https://raw.githubusercontent.com/LibrePhotos/librephotos/dev/librephotos.env
# create a copy of the sample .env
cp librephotos.env .env
# edit the .env
nano .env - Scroll down the .env file and change the /home/username/ text to ~/
- Open a web browser and navigate to https://rb.gy/emgmwo to generate a new shhhhKey
- Set the correct timezone
- Press CTRL+O, Enter, CTRL+X to write the changes to .env
- Run the following command in terminal to start LibrePhoto
sudo docker-compose up -d
- Open a web browser and navigate to http://DNSorIP:3000
- Welcome to LibrePhoto
Source: https://github.com/LibrePhotos/librephotos