Files
stellars-jupyterhub-ds/extra/traefik-host-based-routing/stop.sh
stellarshenson 45cb18da4d feat: enhance traefik-host-based-routing with CIFS and cert installers
- Add optional CIFS mount support via compose_cifs.yml and .env
- Create install_cert.sh for Linux (multi-distro support)
- Enhance install_cert.bat with folder argument and help flags
- Fix compose_override.yml stray quote, add idle culler defaults
- Enhance generate-certs.sh with generic CN and verification
- Update start.sh/stop.sh to support ENABLE_CIFS from .env
- Update README with CIFS and certificate installation docs
2026-01-16 16:27:45 +01:00

26 lines
529 B
Bash
Executable File

#!/bin/bash
# Stop services
set -e
cd "$(dirname "$0")"
# Default configuration (override via .env)
ENABLE_CIFS="${ENABLE_CIFS:-0}"
# Load environment variables if .env exists
if [[ -f .env ]]; then
source .env
fi
# Build compose command with optional CIFS mount
COMPOSE_FILES="-f stellars-jupyterhub-ds/compose.yml -f compose_override.yml"
if [[ "${ENABLE_CIFS}" == "1" ]]; then
COMPOSE_FILES="${COMPOSE_FILES} -f compose_cifs.yml"
fi
echo "Stopping services..."
docker compose ${COMPOSE_FILES} down
echo "Done."