homelab/server/scripts/compose_up.sh

32 lines
1020 B
Bash
Raw Normal View History

2022-08-06 11:04:37 -07:00
#!/bin/bash
echo "==========================================="
echo "========== STARTING MAIN SERVERS =========="
echo "==========================================="
for service in /home/joey/homelab/server/config/*
do
echo "===== STARTING $service ====="
cd $service
docker-compose up -d
done
2022-08-06 11:04:37 -07:00
echo "==========================================="
echo "======== STARTING MINECRAFT SERVERS ======="
echo "==========================================="
for service in /home/joey/homelab/server/config/minecraft/*.yml
do
echo "===== STARTING $service ====="
docker-compose -f $service up -d
done
2022-08-06 11:04:37 -07:00
echo "==========================================="
echo "================ ALL DONE ================="
echo "======= List all running containers ======="
echo "==========================================="
echo "docker ps -a"
docker ps -a
# wish I didn't have to do this
# the exporter boots faster than the plex server, and doesn't seem to retry.
wait 10
docker container restart monitoring_exporter-plex