From 55f83274940ac0615ca5acc7dfa6b7c7abae1fea Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sat, 28 May 2022 12:10:04 +0200 Subject: [PATCH] Added healthcheck for atheme and added default volume dir in compose --- atheme/root/entrypoint.sh | 5 +++++ docker-compose.yml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/atheme/root/entrypoint.sh b/atheme/root/entrypoint.sh index d8fc7fe..43231ca 100755 --- a/atheme/root/entrypoint.sh +++ b/atheme/root/entrypoint.sh @@ -9,6 +9,11 @@ done cp -n -p -r /srv/atheme/var /srv/data/ +# Reset crontab +crontab -r +# Add healthcheck cronjob +echo "*/5 * * * * /srv/data/etc/atheme.cron >/dev/null 2>&1" | crontab - + rm -f /srv/data/var/run/atheme/atheme.pid su atheme \ -c "/srv/atheme/bin/atheme-services \ diff --git a/docker-compose.yml b/docker-compose.yml index 0d8b15e..99f693f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: container_name: ${SO_CONTAINER_NAME:-ircd-solanum} restart: ${SO_RESTART:-unless-stopped} volumes: - - ${LOCAL_STACK_DIR}/solanum/data:/srv/data + - ${LOCAL_STACK_DIR:-./vol}/solanum/data:/srv/data ports: - 5000:5000 - 6665-6669:6665-6669 @@ -24,7 +24,7 @@ services: container_name: ${AT_CONTAINER_NAME:-ircd-atheme} restart: ${AT_RESTART:-unless-stopped} volumes: - - ${LOCAL_STACK_DIR}/atheme/data:/srv/data + - ${LOCAL_STACK_DIR:-./vol}/atheme/data:/srv/data command: ${AT_CMD} networks: