12 lines
149 B

  1. #!/bin/bash
  2. set -e
  3. URL=$(relation-get url) || exit 1
  4. config-add "\
  5. services:
  6. $MASTER_BASE_SERVICE_NAME:
  7. environment:
  8. BASE_URL: $URL
  9. "