From 83100e4e771c07022fbd05a36db4f8c07ac64078 Mon Sep 17 00:00:00 2001 From: Franz Rolfsvaag Date: Sun, 10 Aug 2025 03:36:58 +0200 Subject: [PATCH] Fixed storage and persistence issues within containers --- docker-compose.yml | 5 ++--- settings.conf | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6a4f192..8ae9a93 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,6 @@ services: build: context: . dockerfile: dockerfile # <- your file is named 'dockerfile' - image: shaiwatcher:local # local tag so Portainer can re-use cache restart: unless-stopped # Everything configurable shows up in Portainer's env UI @@ -15,7 +14,7 @@ services: DISCORD_TOKEN: ${DISCORD_TOKEN} # --- Paths --- - SHAI_DATA_FILE: /app/data/data.json + SHAI_DATA_FILE: /data/data.json # --- Reaction gating messages --- SHAI_RULES_MESSAGE_ID: "1396831304460402738" @@ -70,7 +69,7 @@ services: SHAI_EMOJI_CARRIER_CRAWLER_ID: "1402285453037666386" volumes: - - shaiwatcher_data:/app/data # persistent data.json lives here + - shaiwatcher_data:/data # persistent data.json lives here volumes: shaiwatcher_data: diff --git a/settings.conf b/settings.conf index 995a493..e31683a 100644 --- a/settings.conf +++ b/settings.conf @@ -39,7 +39,7 @@ threat_w_skill = 0.10 threat_group_threshold = 3 threat_min_samples_for_stats = 3 -data_file = /app/data/data.json +data_file = /data/data.json release_version = false nick_nudge_loop_enabled = false home_guild_id = 1396826999095427253