Skip to content

All photos regenerated every time container restarts #88

@lanerussell

Description

@lanerussell

Is this behaviour intended? I can understand the site being regenerated, but it seems that all photos are resized into thumbnail, tint, and large every time the container restarts. With my small collection of ~160 photos, this takes over 20 minutes, during which time the site is totally down.

Configuration file: /photo-stream/_config.yml
            Source: /photo-stream
       Destination: /photo-stream/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 1255.925 seconds.
 Auto-regeneration: enabled for '/photo-stream'
    Server address: http://0.0.0.0:4000
  Server running... press ctrl-c to stop.

I'm running the site in docker-compose, and am using volumes to keep a persistent copy of the site:

  photostream:
    image: waschinski/photo-stream:latest
    container_name: photostream
    volumes:
      - /opt/docker/photostream/photos:/photo-stream/photos
      - /opt/docker/photostream/.env:/photo-stream/.env
      - /opt/docker/photostream/config.yml:/photo-stream/_config.yml
      - /opt/docker/photostream/_site:/photo-stream/_site
    restart: always
    ports:
      - 4000:4000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions