#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" ENV_FILE="${NETGESCON_DOCKER_ENV_FILE:-${ROOT_DIR}/.env.docker.local}" if [[ "${ENV_FILE}" != /* ]]; then ENV_FILE="${ROOT_DIR}/${ENV_FILE}" fi if [[ -f "${ENV_FILE}" ]]; then set -a # shellcheck disable=SC1090 source "${ENV_FILE}" set +a fi cd "${ROOT_DIR}" exec docker-compose "$@"