Running LibrePhotos in Docker on Debian 10 🌱

Install Docker

  1. Log into the Linux device
  2. 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

  1. 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
  2. Scroll down the .env file and change the /home/username/ text to ~/
  3. Open a web browser and navigate to https://rb.gy/emgmwo to generate a new shhhhKey
  4. Set the correct timezone
  5. Press CTRL+O, Enter, CTRL+X to write the changes to .env
  6. Run the following command in terminal to start LibrePhoto
    sudo docker-compose up -d
  7. Open a web browser and navigate to http://DNSorIP:3000
  8. Welcome to LibrePhoto

Source: https://github.com/LibrePhotos/librephotos