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:
parent
06bb34891e
commit
1e0643352d
2 changed files with 12 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue