Add EngagementEngine, persona system, dropdowns, penalties, /resetmatty, debug logging

This commit is contained in:
2026-06-16 19:45:50 +02:00
parent 83da1698c0
commit 31a81fbfaa
10 changed files with 411 additions and 129 deletions
+35 -12
View File
@@ -25,11 +25,11 @@ services:
postgres:
condition: service_healthy
environment:
# Database
MM_USERNAME: mmuser
MM_PASSWORD: mmuser_pass
MM_DBNAME: mattermost_test
MM_DBHOST: postgres:5432
# Database — full connection string (env format: MM_{SECTION}_{KEY})
MM_SQLSETTINGS_DATASOURCE: "postgres://mmuser:mmuser_pass@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10"
# Plugin + file storage — use /tmp to avoid permission issues
MM_PLUGINSETTINGS_DIRECTORY: /tmp/plugins
MM_FILESETTINGS_DIRECTORY: /tmp/file_data
# Server
MM_SERVICESETTINGS_SITEURL: http://localhost:8065
MM_SERVICESETTINGS_LISTENADDRESS: :8065
@@ -46,21 +46,44 @@ services:
MM_ANNOUNCEMENTSETTINGS_ADMINNOTICESENABLED: "false"
ports:
- "8065:8065"
# Auto-create admin user (admin/admin) on first boot.
entrypoint: ["/bin/bash", "/init.sh"]
volumes:
# Init script creates admin user on first startup.
- ./init.sh:/init.sh:ro
# Plugin directory — mount so you can upload via UI:
- ./mattermost/plugins:/mattermost/data/plugins:rw
# Data volume for uploads, avatars, etc.
- mattermost-data:/mattermost/data:rw
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8065/api/v4/system/ping | grep -q OK"]
test: ["CMD", "pgrep", "mattermost"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
retries: 30
start_period: 20s
setup:
image: curlimages/curl:latest
container_name: mattermore-setup
depends_on:
mattermost:
condition: service_healthy
command:
- /bin/sh
- -c
- |
echo "setup: waiting for Mattermost API..."
for i in $(seq 1 30); do
if curl -sf http://mattermost:8065/api/v4/system/ping > /dev/null 2>&1; then
echo "setup: Mattermost is ready"
break
fi
echo "setup: waiting... ($i)"
sleep 3
done
echo "setup: creating admin user..."
curl -s -X POST http://mattermost:8065/api/v4/users \
-H "Content-Type: application/json" \
-d '{"email":"admin@example.com","username":"admin","password":"password"}' \
-w "\nsetup: HTTP %{http_code}"
echo ""
echo "setup: done"
volumes:
mattermost-data: