Skip to main content

Photo Album

I am pretty happy with the clever solution I came up with for the photo album. InsteadThis ofuses describingseafile to populate the photo directory, and then pigallery to build the album. This allows you to maintain a folder on your desktop with all your photos on it, here'sand then sync that with seafile, and then seafile syncs it again on the docker-composeserver. file.I have naturally redacted any 

services:
    seafile-client:
      restart: always
      image: gronis/seafile-client
  container_name: sfcd
      environment:
        - TZ=America/Los_Angeles
    - LIBRARY_ID=[set to seafile library ID]
    - SERVER_URL=[set to seafile server URL]
    - SERVER_PORT=[set to server port]
    - USERNAME=[set to seafile username]
    - PASSWORD=[set to seafile password]
        - DATA_DIR=/media/photos
      volumes:
    - ./photos:/media/photos

    pigallery2:
      image: bpatrik/pigallery2:latest
  container_name: photo-gallery
      environment:
        - TZ=America/Los_Angeles
        - NODE_ENV=production # set to 'debug' for full debug logging
      volumes:
    - "./config:/app/data/config"
    - "./db:/app/data/db"
        - "./photos/Photo_Archive:/app/data/images:ro"
#This folder depends on your seafile structure       - "./tmp:/app/data/tmp"
      ports:
    - 80:80
      restart: always