From ce0c5f0fb3f93c9d5966875074ff8b28c593e153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20K=C3=A4llberg?= Date: Sat, 7 Feb 2015 15:43:55 +0000 Subject: [PATCH] set wordpress_db_host to external db --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index adf9eaa098..d39a2d3acc 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e if [ -n "$MYSQL_PORT_3306_TCP" ]; then - WORDPRESS_DB_HOST='mysql' + WORDPRESS_DB_HOST="${MYSQL_PORT_3306_TCP#tcp://}" fi if [ -z "$WORDPRESS_DB_HOST" ]; then