forked from 0k/0k-charms
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
403 B
15 lines
403 B
#!/bin/bash
|
|
set -e
|
|
PASSWORD="$(relation-get password)"
|
|
USER="$(relation-get user)"
|
|
|
|
# Configure Discourse to use a separate Redis server
|
|
config-add "\
|
|
services:
|
|
$MASTER_BASE_SERVICE_NAME:
|
|
environment:
|
|
DISCOURSE_REDIS_USER: $USER
|
|
DISCOURSE_REDIS_PASSWORD: $PASSWORD
|
|
DISCOURSE_REDIS_HOST: $TARGET_SERVICE_NAME
|
|
"
|
|
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."
|