LibrePhotos is an upcoming self-hosted photo management service with a focus on privacy and security. It is built on top of Python and Django, and its source code is available on GitHub. This tutorial will guide you through the process of installing LibrePhotos on Fedora CoreOS latest using Docker.
Before you begin, make sure that you have the following:
$ git clone https://github.com/LibrePhotos/librephotos.git
$ cd librephotos
.env
file by copying the sample file:$ cp .env.example .env
Edit the .env
file and replace the values of the environment variables with your own. These are the variables that you need to set:
POSTGRES_USER
- The username for the PostgreSQL database.POSTGRES_PASSWORD
- The password for the PostgreSQL database.POSTGRES_HOST
- The hostname or IP address of the PostgreSQL server.POSTGRES_PORT
- The port number of the PostgreSQL server.POSTGRES_DB
- The name of the PostgreSQL database.SECRET_KEY
- A secret key for Django.DEBUG
- Set to True
for development and False
for production.ALLOWED_HOSTS
- A comma-separated list of domain names or IP addresses that the service is allowed to run on.Generate a new secret key:
$ python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
Copy the output to the SECRET_KEY
field in the .env
file.
$ docker run -d \
--name librephotos-postgres \
-e POSTGRES_USER=$POSTGRES_USER \
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
-e POSTGRES_DB=$POSTGRES_DB \
postgres:12-alpine
$ docker run -d \
--name librephotos-django \
-p 80:80 \
--env-file .env \
--link librephotos-postgres:postgres \
-v /path/to/photo/library:/vol/photos \
librephotos/librephotos:latest
Replace /path/to/photo/library
with the path to the directory that contains your photos.
http://<your-server-ip>
in your web browser to access LibrePhotos.LibrePhotos is now installed and running on your Fedora CoreOS server. You can now upload your photos and start organizing them. If you encounter any issues during the installation, please refer to the official documentation or ask for help in the community forum.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!