mirror of
https://github.com/System-End/nephthys.git
synced 2026-04-19 15:18:21 +00:00
Add a Docker healthcheck (#99)
* Add a Docker healthcheck * Fix regexp * Add --start-period to healthcheck
This commit is contained in:
parent
20f7e8571b
commit
accd86610e
1 changed files with 3 additions and 1 deletions
|
|
@ -17,4 +17,6 @@ ENV PATH="/app/.venv/bin:$PATH"
|
|||
|
||||
RUN prisma db push
|
||||
|
||||
CMD ["nephthys"]
|
||||
CMD ["nephthys"]
|
||||
|
||||
HEALTHCHECK --start-period=5s CMD curl --fail http://localhost:3000/health | grep -E '"healthy":\s*true' || exit 1
|
||||
Loading…
Add table
Reference in a new issue