Skip to content

How to delay container startup #1426

Answered by lastzero
wormvortex asked this question in Q&A
Discussion options

You must be logged in to vote

Your files must be visible when PhotoPrism is running. Seems best to put a script in place that knows when your files were mounted properly, and delays startup for so long.

  • There is no need to start PhotoPrism directly after your server or VM boots, although Docker offers this option. You can as well start PhotoPrism in a custom script via docker-compose up -d after your files were mounted.
  • Alternatively you can mount a custom entrypoint script into the Docker image at /entrypoint.sh, ideally based on the existing one: https://github.com/photoprism/photoprism/blob/develop/docker/scripts/entrypoint.sh

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wormvortex
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by graciousgrey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants