Add healthcheck, update metadata

This commit is contained in:
3wc 2024-03-30 16:05:32 -03:00
parent a0e8ba4839
commit 4421f81a35
2 changed files with 8 additions and 2 deletions

View File

@ -4,11 +4,11 @@
<!-- metadata --> <!-- metadata -->
* **Category**: Development * **Category**: Development
* **Status**: 3, stable * **Status**: 5
* **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), 4, upstream * **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), 4, upstream
* **Healthcheck**: Yes * **Healthcheck**: Yes
* **Backups**: Yes * **Backups**: Yes
* **Email**: ? * **Email**: Yes
* **Tests**: 2 * **Tests**: 2
* **SSO**: 3 (OAuth) * **SSO**: 3 (OAuth)
<!-- endmetadata --> <!-- endmetadata -->

View File

@ -49,6 +49,12 @@ services:
networks: networks:
- proxy - proxy
- internal - internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
deploy: deploy:
update_config: update_config:
failure_action: rollback failure_action: rollback