healtcheck und depends

This commit is contained in:
Michael Grote 2024-04-02 23:39:05 +02:00
parent d5ec2113e1
commit c47f373bc4
2 changed files with 13 additions and 1 deletions

View file

@ -18,6 +18,8 @@ services:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- "lldap:/data"
depends_on:
- lldap-db
environment:
UID: 1000
GID: 1000
@ -55,6 +57,16 @@ services:
MYSQL_INITDB_SKIP_TZINFO: "1"
networks:
- intern
healthcheck:
interval: 30s
retries: 3
test:
[
"CMD",
"healthcheck.sh",
"--connect",
]
timeout: 30s
######## Volumes ########
volumes:

View file

@ -57,7 +57,7 @@ gitea_user: "gitea"
gitea_home: "/var/lib/gitea"
gitea_user_home: "{{ gitea_home }}"
# config liegt in /etc/gitea/gitea.ini
gitea_configuration_path: "/etc/gitea/etc/gitea"
gitea_configuration_path: "/etc/gitea"
gitea_app_name: "forgejo"
gitea_fqdn: "git.mgrote.net"
# ssh