Reading time: 2 minutes
Hello, today we are going to deploy a Photoprism Docker container to store images like Google Photos on a Raspberry Pi.

The first thing we are going to do is create this docker-compose.yml file:
version: '3.5'
services:
photoprism:
image: photoprism/photoprism:latest
restart: unless-stopped
security_opt:
- seccomp:unconfined
- apparmor:unconfined
ports:
- 8098:2342
environment:
PHOTOPRISM_ADMIN_PASSWORD: "password"
PHOTOPRISM_HTTP_PORT: 2342
PHOTOPRISM_HTTP_COMPRESSION: "gzip"
PHOTOPRISM_DEBUG: "false"
PHOTOPRISM_PUBLIC: "false"
PHOTOPRISM_READONLY: "false"
PHOTOPRISM_EXPERIMENTAL: "false"
PHOTOPRISM_DISABLE_WEBDAV: "false"
PHOTOPRISM_DISABLE_SETTINGS: "false"
PHOTOPRISM_DISABLE_TENSORFLOW: "false"
PHOTOPRISM_DARKTABLE_PRESETS: "false"
PHOTOPRISM_DETECT_NSFW: "false"
PHOTOPRISM_UPLOAD_NSFW: "true"
PHOTOPRISM_DATABASE_DRIVER: "sqlite"
PHOTOPRISM_DATABASE_DSN: "/photoprism/data/database.db"
PHOTOPRISM_SITE_URL: "http://localhost:8200/" # Public PhotoPrism URL
PHOTOPRISM_SITE_TITLE: "PhotoPrism"
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
PHOTOPRISM_SITE_DESCRIPTION: ""
PHOTOPRISM_SITE_AUTHOR: ""
volumes:
# Your photo and video files ([local path]:[container path]):
- ./imagenes:/photoprism/originals
# Multiple folders can be indexed by mounting them as sub-folders of /photoprism/originals:
# - "/mnt/Family:/photoprism/originals/Family" # [folder_1]:/photoprism/originals/[folder_1]
# - "/mnt/Friends:/photoprism/originals/Friends" # [folder_2]:/photoprism/originals/[folder_2]
# Mounting an import folder is optional (see docs):
# - "~/Import:/photoprism/import"
# Permanent storage for settings, index & sidecar files (DON'T REMOVE):
- ./config/photoprism:/photoprism/storage
- ./config/sqlite:/photoprism/data/
networks:
- docker-network
networks:
docker-network:
driver: bridge
external: true
With this, we have an initial configuration of Photoprism using SQLITE. It’s important that we change the default password to the one we want:
PHOTOPRISM_ADMIN_PASSWORD: "password"
Once set, let’s run the container:
docker compose up -d
Once it’s up, we can access it at: http://localhost:8098
It will ask us to log in:

We add username: admin and the password we created above.
And now our Photoprism server is ready:

*To delete an image within an album, you will need to archive the image first, and then you can delete it from the archive section.
