Instalar Photoprism para almacenar fotos como Google Photos en una Raspberry Pi con Docker Compose

Tiempo de lectura: 2 minutos

Hola, hoy vamos a desplegar un contenedor Docker de Photoprism para almacenar imágenes como Google Fotos en una Raspberry Pi.

Lo primero que vamos a hacer es crear este archivo docker-compose.yml

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

Con esto tenemos una primera configuración de Photoprism usando SQLITE. Es importante que cambiemos la contraseña por defecto por la que queramos:

  PHOTOPRISM_ADMIN_PASSWORD: "password"  

Una vez establecida, vamos a ejecutar el contenedor:

docker compose up -d

Una vez levantado, podremos acceder a él desde: http://localhost:8098

Nos pedirá iniciar sesión:

Añadimos username: admin y el password que hemos creado arriba.

Y ya tenemos listo nuestro servidor Photoprism:

*Para borrar una imagen dentro de un álbum, tendrás que archivar la imagen y luego podrás borrarla dentro del apartado archivo.

Deja un comentario