#!/bin/bash

set -e

URL=$(relation-get url) || exit 1

config-add "\
services:
  $MASTER_BASE_SERVICE_NAME:
    environment:
      BASE_URL: $URL
"