Point citadel btcprice at the local btcdata over btc-network
omarchy is gone, but the citadel deployment still set BTCDATA_URL=http://192.168.50.42:4102 and ran standalone on its own compose network. Every request that proxies to btcdata failed with httpx.ConnectError: All connection attempts failed. btcdata now runs on citadel too, so attach btcprice to the external btc-network there and reach it by service name at http://btcdata:4102. deploy-citadel.sh creates the network on the remote if missing, as btcdata's own deploy script already does. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TRkiLhK5qhkZjP2adxpA3e
This commit is contained in:
@@ -7,6 +7,7 @@ IMAGE_NAME="${BTCPRICE_IMAGE_NAME:-btcprice:latest}"
|
||||
PLATFORM="${BTCPRICE_PLATFORM:-}"
|
||||
COMPOSE_FILE="docker-compose.citadel.yml"
|
||||
ENV_FILE=".env.citadel"
|
||||
NETWORK="${BTCPRICE_NETWORK:-btc-network}"
|
||||
FILES=("$COMPOSE_FILE" "$ENV_FILE")
|
||||
|
||||
if [[ -z "$PLATFORM" ]]; then
|
||||
@@ -35,6 +36,9 @@ docker build --platform "$PLATFORM" -t "$IMAGE_NAME" .
|
||||
echo "Preparing $APP_DIR on $HOST..."
|
||||
ssh "$HOST" "mkdir -p '$APP_DIR'"
|
||||
|
||||
echo "Ensuring external network $NETWORK exists on $HOST..."
|
||||
ssh "$HOST" "docker network inspect '$NETWORK' >/dev/null 2>&1 || docker network create '$NETWORK'"
|
||||
|
||||
echo "Copying $COMPOSE_FILE and $ENV_FILE to $HOST:$APP_DIR..."
|
||||
scp "$COMPOSE_FILE" "$HOST:$APP_DIR/docker-compose.yml"
|
||||
scp "$ENV_FILE" "$HOST:$APP_DIR/.env"
|
||||
|
||||
Reference in New Issue
Block a user