Add dev init script with auto-created admin user (admin/admin) on first boot

This commit is contained in:
2026-06-16 17:52:46 +02:00
parent 427aedaae7
commit 83da1698c0
2 changed files with 40 additions and 4 deletions
+5 -4
View File
@@ -46,12 +46,13 @@ services:
MM_ANNOUNCEMENTSETTINGS_ADMINNOTICESENABLED: "false"
ports:
- "8065:8065"
# Auto-create admin user (admin/admin) on first boot.
entrypoint: ["/bin/bash", "/init.sh"]
volumes:
# Persistent plugin directory — mount the dist folder so you can
# upload plugins via UI or copy them directly:
# 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
# Config override (optional — uncomment to persist config changes)
# - ./mattermost/config:/mattermost/config:rw
# Data volume for uploads, avatars, etc.
- mattermost-data:/mattermost/data:rw
healthcheck: