mirror of
https://github.com/coltoneshaw/CS-Repro-Mattermost.git
synced 2025-12-23 10:01:30 +01:00
added rtcd service
This commit is contained in:
15
Makefile
15
Makefile
@@ -45,13 +45,28 @@ run-mm-replicas:
|
|||||||
@docker-compose up -d mattermost mattermost-2
|
@docker-compose up -d mattermost mattermost-2
|
||||||
@echo "Should be up and running. Go crazy."
|
@echo "Should be up and running. Go crazy."
|
||||||
|
|
||||||
|
run-rtcd:
|
||||||
|
@echo "Starting RTCD..."
|
||||||
|
@docker-compose up -d mattermost-rtcd
|
||||||
|
@docker exec -it cs-repro-mattermost mmctl config set PluginSettings.Plugins.com.mattermost.calls.rtcdserviceurl "http://mattermost-rtcd" --local
|
||||||
|
@docker exec -it cs-repro-mattermost mmctl plugin disable com.mattermost.calls --local
|
||||||
|
@docker exec -it cs-repro-mattermost mmctl plugin enable com.mattermost.calls --local
|
||||||
|
|
||||||
run-all: run run-db-replicas run-mm-replicas
|
run-all: run run-db-replicas run-mm-replicas
|
||||||
|
|
||||||
|
start:
|
||||||
|
@echo "Starting the existing deployment..."
|
||||||
|
@docker-compose start
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
@echo "Stopping..."
|
@echo "Stopping..."
|
||||||
@docker-compose stop
|
@docker-compose stop
|
||||||
@echo "Done"
|
@echo "Done"
|
||||||
|
|
||||||
|
stop-rtcd:
|
||||||
|
@echo "Stopping RTCD..."
|
||||||
|
@docker-compose stop mattermost-rtcd
|
||||||
|
|
||||||
restart:
|
restart:
|
||||||
@docker-compose restart
|
@docker-compose restart
|
||||||
@make check-mattermost
|
@make check-mattermost
|
||||||
|
|||||||
15
README.md
15
README.md
@@ -14,6 +14,7 @@ This is designed to be used as a reproduction of a standard customer production
|
|||||||
- [Migrating to Config in DB](#using-config-in-db)
|
- [Migrating to Config in DB](#using-config-in-db)
|
||||||
- [MMCTL](#mmctl)
|
- [MMCTL](#mmctl)
|
||||||
- [Adding Postgres Read Replicas](#adding-postgres-read-replicas)
|
- [Adding Postgres Read Replicas](#adding-postgres-read-replicas)
|
||||||
|
- [Calls](#calls)
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
@@ -40,6 +41,10 @@ This is designed to be used as a reproduction of a standard customer production
|
|||||||
- You can use any of the accounts to sign in.
|
- You can use any of the accounts to sign in.
|
||||||
- The keycloak container can be **very** picky sometimes and require a restart of just that container to sign in with that method the first time.
|
- The keycloak container can be **very** picky sometimes and require a restart of just that container to sign in with that method the first time.
|
||||||
|
|
||||||
|
5. To stop everything run `make stop`.
|
||||||
|
|
||||||
|
6. To then bring it up again, without creating new containers, run `make start`.
|
||||||
|
|
||||||
## Accounts
|
## Accounts
|
||||||
|
|
||||||
| Username | Password | Keycloak Role | Mattermost Role | Can use LDAP? | Can use SAML? |
|
| Username | Password | Keycloak Role | Mattermost Role | Can use LDAP? | Can use SAML? |
|
||||||
@@ -61,11 +66,13 @@ Additionally, the keycloak container can take up to 5 minutes to spin up. If it'
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
- **`make start` / `make run`**: Initializes the environment.
|
- **`make start`**: Starts the containers that already exist, nothing more.
|
||||||
|
- **`make run`**: Initializes the environment and creates the containers
|
||||||
- **`make run-all`**: Spins up all environment containers with the database replicas and Mattermost HA.
|
- **`make run-all`**: Spins up all environment containers with the database replicas and Mattermost HA.
|
||||||
- You must run `make run` before running the below:
|
- You must run `make run` before running the below:
|
||||||
- **`make run-db-replica`**: Launches the environment with replicas. Ideal for adding replicas to an existing setup or initializing with replicas from the get-go.
|
- **`make run-db-replica`**: Launches the environment with replicas. Ideal for adding replicas to an existing setup or initializing with replicas from the get-go.
|
||||||
- **`make run-mm-replica`: Launches an additional Mattermost node and enables HA.
|
- **`make run-mm-replica`**: Launches an additional Mattermost node and enables HA.
|
||||||
|
- **`make run-rtcd`**: Launches the RTCD service for Mattermost Calls and updates the config to use it correctly.
|
||||||
- **`make backup-keycloak`**: Generates a backup of the current Keycloak setup in the files directory. Useful for infrequent backups.
|
- **`make backup-keycloak`**: Generates a backup of the current Keycloak setup in the files directory. Useful for infrequent backups.
|
||||||
- **`make restore-keycloak`**: Restores Keycloak data from an existing backup. Ensure `./volumes/keycloak` is cleared before restoration.
|
- **`make restore-keycloak`**: Restores Keycloak data from an existing backup. Ensure `./volumes/keycloak` is cleared before restoration.
|
||||||
- **`make stop`**: Halts all running containers.
|
- **`make stop`**: Halts all running containers.
|
||||||
@@ -289,3 +296,7 @@ docker exec -it cs-repro-openldap ldapmodify \
|
|||||||
-w GoodNewsEveryone \
|
-w GoodNewsEveryone \
|
||||||
-f /ldap/addUniqueIdToUsers.ldif
|
-f /ldap/addUniqueIdToUsers.ldif
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Calls
|
||||||
|
|
||||||
|
By default this is setup to run on the built in Mattermost calls. You can enable the `rtcd` service by running `make run-rtcd`, which will start up `rtcd` and adjust the settings within Mattermost to work.
|
||||||
@@ -223,6 +223,24 @@ services:
|
|||||||
- MM_ServiceSettings_EnableLocalMode=true
|
- MM_ServiceSettings_EnableLocalMode=true
|
||||||
- MM_ServiceSettings_LocalModeSocketLocation=/var/tmp/mattermost_local.socket
|
- MM_ServiceSettings_LocalModeSocketLocation=/var/tmp/mattermost_local.socket
|
||||||
- MM_ServiceSettings_LicenseFileLocation=/mattermost/config/license.mattermost-enterprise
|
- MM_ServiceSettings_LicenseFileLocation=/mattermost/config/license.mattermost-enterprise
|
||||||
|
mattermost-rtcd:
|
||||||
|
container_name: cs-repro-mattermost-rtcd
|
||||||
|
platform: linux/amd64
|
||||||
|
image: mattermost/rtcd:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./volumes/rtcd/logs:/logs:rw
|
||||||
|
environment:
|
||||||
|
- RTCD_LOGGER_ENABLEFILE=true
|
||||||
|
- RTCD_LOGGER_FILELOCATION=/logs
|
||||||
|
- RTCD_LOGGER_FILELEVEL=DEBUG
|
||||||
|
- RTCD_API_SECURITY_ALLOWSELFREGISTRATION=true
|
||||||
|
- RTCD_LOGGER_CONSOLELEVEL=DEBUG
|
||||||
|
ports:
|
||||||
|
- "8443:8443/udp"
|
||||||
|
- "8443:8443/tcp"
|
||||||
|
- "8045:8045"
|
||||||
|
|
||||||
# mysql:
|
# mysql:
|
||||||
# container_name: cs-repro-mysql
|
# container_name: cs-repro-mysql
|
||||||
# image: mysql:8
|
# image: mysql:8
|
||||||
|
|||||||
Reference in New Issue
Block a user