Fix gitea admin setup, Add healthcheck

Added healthcheck to gitea database contaier.

Fixed initial admin setup checks - uses correct in-container user and
fixed fail checks.
This commit is contained in:
Marty Oehme 2022-01-22 10:48:31 +01:00
parent 06bb34891e
commit 1e0643352d
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 12 additions and 4 deletions

View file

@ -47,6 +47,12 @@ services:
db:
image: postgres:13
healthcheck:
test: ["CMD", "pg_isready", "-q", "-U", "{{ gitea_db_username }}"]
interval: 1m
timeout: 10s
retries: 3
start_period: 1m
volumes:
- db:/var/lib/postgresql/data
networks: