From 802a95a118226dcf088d900c9dee2a18f1049b73 Mon Sep 17 00:00:00 2001 From: GooeyTuxedo Date: Sat, 8 Apr 2023 11:42:03 -0700 Subject: [PATCH] Restart container on exit from unhandled api error --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 77939ab..6bc51b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,11 @@ version: '3' services: serge-discord-bot: container_name: serge-discord-bot + restart: unless-stopped build: context: . + volumes: + - ${DATA_DIR}/rai-bot:/app/cache environment: - NODE_ENV=production ## Env Vars for rAi chatbot