Fixed storage and persistence issues within containers

This commit is contained in:
Franz Rolfsvaag 2025-08-10 03:36:58 +02:00
parent 6686923b6a
commit 83100e4e77
2 changed files with 3 additions and 4 deletions

View File

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

View File

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