Thinking about the Docker compose healthcheck I spotted the MariaDB container using, I realized I don’t actually know our healthcheck URL. Do we have a better endpoint to hit than the login URL?
Thanks!
Thinking about the Docker compose healthcheck I spotted the MariaDB container using, I realized I don’t actually know our healthcheck URL. Do we have a better endpoint to hit than the login URL?
Thanks!
I created a PR to work on it a while back, but ran into difficulty and haven’t finished it yet. feat(ApplicationHealthProbe): application health probes by kojiromike · Pull Request #8796 · openemr/openemr · GitHub. So it doesn’t exist today.
I see you’re already ahead of me, then, how splendid. I think that I stopped paying attention to how Docker evolved after version 1 of its everything and I’m only just now catching up.
I watched that issue, so when it budges I’ll know, and make do in the meantime. Thanks!
healthcheck:
test: '[ "$(curl -s -w "%{http_code}" http://localhost/)" -eq 302 ]'
start_period: 3m
start_interval: 10s
interval: 1m
timeout: 5s
depends_on:
mysql:
condition: service_healthy
restart: true
It’s not great but it gets something on the board.
You can probably get away with curl -f there, since you don’t always want a 302, but anything < 400 is probably OK.