mirror of
https://github.com/coltoneshaw/CS-Repro-Mattermost.git
synced 2025-12-23 18:11:34 +01:00
3.4 KiB
3.4 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This repository contains a CS Repro Mattermost environment - a reproduction of a standard Mattermost customer production environment with preconfigured SAML, LDAP, Advanced Logging, Prometheus, Grafana, Elasticsearch, and read replicas. It is designed for testing and reproducing customer environments.
Environment Setup
Prerequisites
You need to have Docker and Docker Compose installed on your machine to run this environment.
Initial Setup
- Add an enterprise license file named
license.mattermostto the root directory - Run
make runto start the core services
Common Commands
Environment Management
make run- Initialize environment and create containersmake run-all- Spin up all environment containers (with DB replicas and Mattermost HA)make run-db-replicas- Add database replicas to the environmentmake run-mm-replicas- Add Mattermost HA nodes to the environmentmake run-rtcd- Launch RTCD service for Mattermost Callsmake start- Start existing containersmake stop- Stop all running containersmake restart- Restart all containersmake restart-mattermost- Restart only Mattermost containers (preferred for testing changes)make backup-keycloak- Generate a backup of the current Keycloak setupmake restore-keycloak- Restore Keycloak data from an existing backupmake reset- Clean volumes directory and reinitialize the environmentmake delete-data- Clear all data within volumesmake nuke- Erase all configurations and datamake nuke-rmi- Complete cleanup including removing Docker images
Upgrading and Downgrading
To upgrade Mattermost:
- Modify the image tag in
docker-compose.yml - Run
make restart-mattermost
To downgrade Mattermost:
- Modify the image tag in
docker-compose.yml - Run
make downgrade
Component Access
Mattermost
- URL: http://localhost:8065
- Default credentials available in the accounts section below
LDAP
- Admin access:
cn=admin,dc=planetexpress,dc=com/GoodNewsEveryone - Commands for LDAP operations are in the README.md
Grafana
- URL: http://localhost:3000
- Credentials: admin / admin
Elasticsearch
mitmproxy
Account Information
| Username | Password | Role in Mattermost | Can use LDAP? | Can use SAML? |
|---|---|---|---|---|
| admin | admin | n/a | n/a | n/a |
| professor | professor | Sys Admin | Yes | Yes |
| bender | bender | Member | Yes | Yes |
| hermes | hermes | Sys Admin | Yes | Yes |
| fry | fry | Member | Yes | Yes |
| leela | leela | Member | Yes | Yes |
| zoidberg | zoidberg | Member | Yes | Yes |
| amy | amy | Member | Yes | Yes |
Database Information
- Primary PostgreSQL:
postgresql://mmuser:mmuser_password@localhost:5432/mattermost - Replica 1:
postgresql://mmuser:mmuser_password@localhost:5433/mattermost - Replica 2:
postgresql://mmuser:mmuser_password@localhost:5434/mattermost