Skip to main content

Photo Album

I am pretty happy with the clever solution I came up with for the photo album. This uses seafile 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, and then sync that with seafile, and then seafile syncs it again on the server. I have naturally redacted any passwords or personalization from it, but this setup is how my photo album works. 

docker-compose.yaml
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