Files
vault/start.sh
Vassiliy Yegorov 66a730733d fix
2022-07-28 01:05:09 +07:00

15 lines
271 B
Bash
Executable File

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