#!/bin/sh

set +x

# docker-compose -f dev/docker-compose.drakemall.yml config | yq -M .services.drakemall.environment > .env.json | vault write drakemall/qa -

function start_vault {
  export VAULT_LOCAL_CONFIG=$(cat config/vault.hcl)
  local compose_file=./dev/docker-compose.vault.yml
  
  docker-compose -f $compose_file config -q
  docker-compose -f $compose_file up -d
}

start_vault