chore: add restart and failover action scripts
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
docker compose restart postgres
|
||||
docker compose restart redis
|
||||
docker compose restart api
|
||||
docker compose restart nginx
|
||||
@@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
if "%TARGET_INSTANCE_ID%"=="" (
|
||||
echo TARGET_INSTANCE_ID is not set
|
||||
exit /b 1
|
||||
)
|
||||
docker stop %TARGET_INSTANCE_ID%
|
||||
Reference in New Issue
Block a user