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: