PhotoPrism is a personal photo manager powered by Go and Angular. It allows you to organize and edit your photo collection, as well as share it with others. In this tutorial, we will be installing PhotoPrism on Ubuntu Server Latest.
Before continuing with this tutorial, you should:
If you haven't installed Docker and Docker Compose, you can follow the instructions in our tutorial on how to install Docker and Docker Compose on Ubuntu.
Create a directory for PhotoPrism:
sudo mkdir /opt/photoprism
Navigate to the directory:
cd /opt/photoprism
Create a docker-compose.yml
file:
sudo nano docker-compose.yml
Paste the following content:
version: '3'
services:
photoprism:
image: photoprism/photoprism:latest
ports:
- "2342:2342"
environment:
PHOTOPRISM_ADMIN_PASSWORD: your_admin_password
PHOTOPRISM_UNSPLASH_ACCESS_KEY: your_unsplash_access_key
PHOTOPRISM_UNSPLASH_SECRET_KEY: your_unsplash_secret_key
PHOTOPRISM_SCANDIR: /pictures
PHOTOPRISM_READONLY: "1"
PHOTOPRISM_BATCH_IMPORT: "1"
PHOTOPRISM_ORIGINALS_DIR: "/data/originals"
PHOTOPRISM_CACHE_DIR: "/data/cache"
PHOTOPRISM_EXPORT_DIR: "/data/export"
PHOTOPRISM_LOG_DIR: "/data/logs"
volumes:
- photoprism_data:/data
- /your/photo/directory:/pictures
restart: unless-stopped
volumes:
photoprism_data:
You can edit the environment variables according to your preferences. The environment variables used in this file are:
your_admin_password
with your desired passwordyour_unsplash_access_key
and your_unsplash_secret_key
with your own keys1
, PhotoPrism will run in read-only mode1
, PhotoPrism will import photos in batchesSave and close the file by pressing CTRL+X
, then Y
, then ENTER
.
Start the PhotoPrism container:
sudo docker-compose up -d
The -d
option detaches the container from the terminal.
Wait for Docker to download and install the PhotoPrism image.
Access PhotoPrism by visiting http://<your-server-ip>:2342
in your web browser. You will be prompted to log in with the admin credentials you set in the docker-compose.yml
file. Once logged in, you can start importing and managing your photo collection.
You have now installed PhotoPrism on Ubuntu Server Latest using Docker and Docker Compose. You can now upload and edit your photo collection, as well as share it with others. For more information on using PhotoPrism, refer to the official documentation.
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!