You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
325 B

  1. set -e
  2. PASSWORD="$(relation-get password)"
  3. USER="$(relation-get user)"
  4. DBNAME="$(relation-get dbname)"
  5. config-add "\
  6. services:
  7. $MASTER_BASE_SERVICE_NAME:
  8. environment:
  9. DATABASE_URL: postgres://$USER:$PASSWORD@$TARGET_SERVICE_NAME/$DBNAME
  10. "
  11. info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."