diff --git a/distillery/resources/compose/barrel/docker-compose.yml b/distillery/resources/compose/barrel/docker-compose.yml index 183f997..21d2de4 100644 --- a/distillery/resources/compose/barrel/docker-compose.yml +++ b/distillery/resources/compose/barrel/docker-compose.yml @@ -4,7 +4,7 @@ services: barrel: build: . restart: always - hostname: ${VIRTUAL_HOST} + hostname: ${VIRTUAL_HOST}.wisski environment: # port and hostname for this image to use VIRTUAL_HOST: ${VIRTUAL_HOST} diff --git a/distillery/utils/set_trusted_host.sh b/distillery/utils/set_trusted_host.sh index 95b4cf4..bd8d1f0 100755 --- a/distillery/utils/set_trusted_host.sh +++ b/distillery/utils/set_trusted_host.sh @@ -3,7 +3,7 @@ # This utility script can be used to configure the trusted host settings inside of settings.php. # It doesn't take care of corner cases and should only be used when needed. -INSTANCE_DOMAIN="$(hostname -f)" +INSTANCE_DOMAIN="${VIRTUAL_HOST}" chmod u+w web/sites/default/settings.php echo "" >> web/sites/default/settings.php echo "\$settings['trusted_host_patterns'] = ['${INSTANCE_DOMAIN//\./\\\.}'];" >> web/sites/default/settings.php