#!/usr/bin/env bash set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" DEVNET_DIR="$PROJECT_DIR/../../src/atproto-devnet" cd "$PROJECT_DIR" docker compose \ -f "$DEVNET_DIR/docker-compose.yml" \ -f docker-compose.devnet.yml \ --env-file devnet.env \ --project-directory . \ down -v # `down -v` wipes the PDS/Postgres docker volumes, but accounts.json/.env # live in a bind-mounted host directory and survive — leaving stale DIDs # that no longer resolve against the fresh PLC, and init.sh skipping # reseeding because the file still exists. Remove them so the next # devnet-up.sh always reseeds cleanly. rm -f "$DEVNET_DIR/data/accounts.json" "$DEVNET_DIR/data/accounts.env"