add matrix

This commit is contained in:
aykhans committed 2026-07-30 16:25:59 +00:00
1 parent 14f48aae55
commit c2622dc6ac
7 files changed
+117 -4

No files matched your search

+19
View File
@@ -66,6 +66,7 @@ generate_env_files() {
cp --update=none ./stalwart/.env.example ./stalwart/.env
cp --update=none ./crowdsec/.env.example ./crowdsec/.env
cp --update=none ./prometheus/.env.example ./prometheus/.env
cp --update=none ./matrix/.env.example ./matrix/.env
cp --update=none ./caddy/Caddyfile.private.example ./caddy/Caddyfile.private
print_success ".env files generated."
}
@@ -216,6 +217,15 @@ start_services() {
exit 1
fi
echo "Starting matrix..."
$DOCKER_COMPOSE_COMMAND -f ./matrix/docker-compose.yaml up --pull always -d
if [ $? -eq 0 ]; then
print_success "Matrix started successfully."
else
print_error "failed to start Matrix!"
exit 1
fi
echo "Starting crowdsec..."
$DOCKER_COMPOSE_COMMAND -f ./crowdsec/docker-compose.yaml up --pull always -d
if [ $? -eq 0 ]; then
@@ -412,6 +422,15 @@ stop_services() {
exit 1
fi
echo "Stopping matrix..."
$DOCKER_COMPOSE_COMMAND -f ./matrix/docker-compose.yaml down
if [ $? -eq 0 ]; then
print_success "Matrix stopped successfully."
else
print_error "failed to stop Matrix!"
exit 1
fi
echo "Stopping watchtower..."
$DOCKER_COMPOSE_COMMAND -f ./watchtower/docker-compose.yaml down
if [ $? -eq 0 ]; then