removed stacks and using normal docker but with seperated compose files

This commit is contained in:
poslop
2024-10-29 13:51:35 -05:00
parent 0e5da4b9f1
commit e64814cebb
17 changed files with 289 additions and 241 deletions

41
scripts/run-all.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/bash
# Define the path to the .env file (root-level)
ENV_FILE="/mnt/docker/.env"
# Base directory where the service Compose files are located
COMPOSE_DIR="/mnt/docker/docker-compose.d"
# List of service directories under docker-compose.d
services=(
"Documentation/bookstack.yml"
"Documentation/gitea.yml"
"Documentation/vaultwarden.yml"
"Media/arr.yml"
"Media/jellyfin.yml"
"Media/shoko.yml"
"Networking/gluetun.yml"
"Networking/technitium.yml"
"Networking/caddy.yml"
"Tools/searxng.yml"
"Tools/monerod.yml"
"Tools/p2pool.yml"
"Tools/ariang.yml"
"Tools/nextcloud-aio.yml"
)
# Start building the docker compose command with multiple -f flags
COMPOSE_COMMAND="docker compose --env-file \"$ENV_FILE\""
# Loop through each service and append the -f flag for each compose file
for service in "${services[@]}"; do
COMPOSE_COMMAND+=" -f \"$COMPOSE_DIR/$service\""
done
# Add the up command to the final docker compose command
COMPOSE_COMMAND+=" up -d"
# Execute the composed command
eval $COMPOSE_COMMAND
echo "All services have been started."