1
0
mirror of https://github.com/coltoneshaw/CS-Repro-Mattermost.git synced 2025-12-23 18:11:34 +01:00

fixed some replica config settings

This commit is contained in:
coltoneshaw
2024-03-29 18:37:21 -04:00
parent 21fdbf5a37
commit 7e4f5cf5e8
12 changed files with 59 additions and 62 deletions

View File

@@ -31,8 +31,14 @@ start:
@make run
start-replicas:
@make run
@echo "Starting the replicas... hold on a moment..."
@docker-compose -f docker-compose.yml -f docker-compose-read-replicas.yml up -d
@docker exec -it cs-repro-mattermost mmctl config patch /mattermost/config/replicaConfig.json --local
@echo "Sleeping for 2 minutes while the replication is established. Be back in a moment..."
@sleep 120
@make restart-mattermost
@echo "Should be up and running. Go crazy."
stop:
@echo "Stopping..."
@@ -69,6 +75,7 @@ delete-dockerfiles:
@echo "Deleting data..."
@docker-compose rm
@rm -rf ./volumes
@rm -rf ./files/postgres/replica/replica_*
@echo "Done"
delete-data: stop delete-dockerfiles