#!/bin/bash
source db.env
# replace all {{REDISPASSWORD}} to $REDIS_PASS
find ./ -type f -exec sed -i "s/{{REDISPASSWORD}}/$REDIS_PASS/g" {} \;

# replace all {{CHAINURL}} to $CHAIN_URL
find ./ -type f -exec sed -i "s/{{CHAINURL}}/$CHAIN_URL/g" {} \;
# rplace all {{MYSQLPASS}} to $MYSQL_ROOT_PASSWORD
find ./ -type f -exec sed -i "s/{{MYSQLPASS}}/$MYSQL_ROOT_PASSWORD/g" {} \;
#docker compose -f docker-compose.yml up -d
