Files
vault/start.sh
Vassiliy Yegorov 8a786f7861 fix
2022-07-28 01:02:45 +07:00

17 lines
319 B
Bash
Executable File

#!/bin/bash
[[ ! -f .env ]] && {
echo "Please create .env file and put domain"
exit 1
}
source .env
docker compose up -d
while [[ ! $(docker inspect -f {{.State.Health.Status}} vault) == "healthy" ]]; do
sleep 0.5;
done
docker exec vault /bin/sh -c "export VAULT_HOST=${VAULT_HOST} && source /helpers/init.sh"