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 | sudo apt-key add -
    # add docker software repository
    sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
    # install docker
    sudo apt update
    sudo apt install docker-ce docker-ce-cli
    # 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 "$(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
    # 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 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