Files
ethereum-rpc-docker/start.sh
2025-09-01 10:45:10 +07:00

9 lines
269 B
Bash
Executable File

#!/bin/bash
if [ -z "$1" ] || [ ! -f "/root/rpc/$1.yml" ]; then
echo "Error: Either no argument provided or /root/rpc/$1.yml does not exist."
exit 1
fi
docker compose up -d $(cat /root/rpc/$1.yml | yaml2json - | jq '.services' | jq -r 'keys[]' | tr '\n' ' ')