mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-09-05 02:33:33 +00:00
Add uptime kuma
This commit is contained in:
19
main.sh
19
main.sh
@@ -62,6 +62,7 @@ generate_env_files() {
|
||||
cp --update=none ./glance/.env.example ./glance/.env
|
||||
cp --update=none ./ghost/.env.example ./ghost/.env
|
||||
cp --update=none ./immich/.env.example ./immich/.env
|
||||
cp --update=none ./uptime_kuma/.env.example ./uptime_kuma/.env
|
||||
cp --update=none ./caddy/Caddyfile.private.example ./caddy/Caddyfile.private
|
||||
# cp --update=none ./slash/.env.example ./slash/.env
|
||||
# cp --update=none ./grafana/.env.example ./grafana/.env
|
||||
@@ -182,6 +183,15 @@ start_services() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting uptime kuma..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./uptime_kuma/docker-compose.yml up -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Uptime kuma started successfully."
|
||||
else
|
||||
print_error "failed to start Uptime kuma!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting caddy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml up -d
|
||||
if [ $? -eq 0 ]; then
|
||||
@@ -301,6 +311,15 @@ stop_services() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Stopping uptime kuma..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./uptime_kuma/docker-compose.yml down
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Uptime kuma stopped successfully."
|
||||
else
|
||||
print_error "failed to stop Uptime kuma!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Stopping caddy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml down
|
||||
if [ $? -eq 0 ]; then
|
||||
|
Reference in New Issue
Block a user