From f7cb9545aeab99dad198a6a192b1d901f9daa031 Mon Sep 17 00:00:00 2001 From: Sasiko <4606415+Sasiko@users.noreply.github.com> Date: Thu, 20 Aug 2020 14:45:57 +0200 Subject: [PATCH] Make sure the bot auto restarts Whenever you flush or change your firewall, it drops iptables for docker annoyingly, or if you are using a service that affect the iptables in general can make docker unusable. When you restart docker, the restart command i added will make sure to restart the bot aswell. Without it, the bot will have to be manually started with docker-compose up -d --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1ddaf454..b36f8d48 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,7 @@ services: dockerfile: Dockerfile environment: WAIT_HOSTS: db:3306, rabbitmq:5672 + restart: unless-stopped volumes: - .:/home/node/app - node_modules:/home/node/app/node_modules