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

View file

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