Skip to content

Commit

Permalink
fix bugs for init_script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ThreeAndTwo committed Sep 14, 2024
1 parent de16afc commit ae60379
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/tracker/init_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@ echo "Check completed"

sudo cp docker/data/bitcoin.conf "$NESTED_DIRS[1]"
echo "Starting services"

docker compose down
docker compose up -d

cd ../../
echo "Building tracker service"
docker build -t tracker:latest .
echo "Starting tracker service"

if docker ps -a | grep -q tracker; then
echo "Tracker service already exists, removing..."
docker rm -f tracker
fi

docker run -d \
--name tracker \
--add-host="host.docker.internal:host-gateway" \
Expand Down

0 comments on commit ae60379

Please sign in to comment.