Added healthcheck for atheme and added default volume dir in compose

master
Meliurwen 2 years ago
parent 189bf9c644
commit 55f8327494
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 5
      atheme/root/entrypoint.sh
  2. 4
      docker-compose.yml

@ -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 \

@ -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:

Loading…
Cancel
Save