Skip to main content

Photo Album

I am pretty happy with the clever solution I came up with for the photo album. Instead of describing it, here's the docker-compose file. 

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"
      - "./tmp:/app/data/tmp"
    ports:
    - 80:80
    restart: always