Qolors / Clam-Shell

Discord File & URL Monitoring Anti-Virus Engine
26 stars 0 forks source link

Slight change to docker compose file for slower systems #3

Open daronhudson opened 8 months ago

daronhudson commented 8 months ago

Hello, I've been running some tests on my home server with power configurations recently. I noticed that the bot and worker would crash because the clamav server wouldn't be up when it expected it if my server was on low power mode.

You can add something along the lines of:

    depends_on:
      clamshell_server:
        condition: service_healthy

To both the bot and worker containers to ensure that they both always come up as expected. It definitely increases the startup time of the entire service by a tiny bit, but it guarantees it'll be up every time.