diff --git a/deploy.sh b/deploy.sh index 0d34577..eaff4d4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -99,9 +99,10 @@ if [ "$GREENFIELD" = true ]; then # Podman network + deploy all 3 containers echo "[5/5] Deploying containers on $NETWORK_NAME..." podman network create "$NETWORK_NAME" 2>/dev/null || true - podman-compose -f "$TARGET_DIR/compose/launcher.yaml" up -d 2>&1 || echo "[WARN] Launcher deploy had issues" - podman-compose -f "$TARGET_DIR/compose/authelia.yaml" up -d 2>&1 || echo "[WARN] Authelia deploy had issues" - podman-compose -f "$TARGET_DIR/compose/caddy.yaml" up -d 2>&1 || echo "[WARN] Caddy deploy had issues" + for COMPOSE in launcher authelia caddy; do + podman-compose -f "$TARGET_DIR/compose/$COMPOSE.yaml" down 2>/dev/null || true + podman-compose -f "$TARGET_DIR/compose/$COMPOSE.yaml" up -d 2>&1 || echo "[WARN] $COMPOSE deploy had issues" + done sleep 3 AUTHELIA_SECRET=$(grep -oP 'session_secret: \K.*' "$TARGET_DIR/config/authelia/configuration.yml" 2>/dev/null || echo "")