Skip to content
Discussion options

You must be logged in to vote

That's what I've done but it was not enough, I needed to add a healthcheck on postgres. Thanks for the lead though!
If anyone need it, this is a solution:

On Postgres:

    healthcheck:
      test:
        - CMD-SHELL
        - pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
      interval: 10s
      retries: 5
      start_period: 30s
      timeout: 10s

On Memos:

   depends_on:
      name_of_the_postgres_containter:
        condition: service_healthy

Replies: 1 comment 1 reply

Comment options

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

Answer selected by malantp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants