diff --git a/dockerfiles/services/wordpress/run-wordpress.sh b/dockerfiles/services/wordpress/run-wordpress.sh
index 2e21d5be7ec27c8ca784e2af1e9f69e5933f7cd4..95e5785f06ad0436b3c226c414f7fa1ace7e19c8 100644
--- a/dockerfiles/services/wordpress/run-wordpress.sh
+++ b/dockerfiles/services/wordpress/run-wordpress.sh
@@ -53,7 +53,7 @@ if [[ $DB_CONNECTABLE -eq 0 ]]; then
         echo "=> Installation of Wordpress"
         PASS=`openssl rand -base64 15`
         cd /app
-        wp --allow-root core install --url=${URL} --title=${URL} --admin_user=${EMAIL} --admin_password=${PASS} --admin_email=${EMAIL}
+        wp --allow-root core install --url=https://${URL} --title=${URL} --admin_user=${EMAIL} --admin_password=${PASS} --admin_email=${EMAIL}
         wp --allow-root plugin install wordpress-https
         wp --allow-root plugin activate wordpress-https
         echo "=> Done!"
diff --git a/dockerfiles/services/wordpress/wp-config.php b/dockerfiles/services/wordpress/wp-config.php
index 09d83be8157f53f7463a5f361587ef3760b123ab..4ff98df77e78bec3b17591df1ee18c7758a80ba3 100644
--- a/dockerfiles/services/wordpress/wp-config.php
+++ b/dockerfiles/services/wordpress/wp-config.php
@@ -14,6 +14,10 @@
  * @package WordPress
  */
 
+define('FORCE_SSL_ADMIN', true);
+if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
+       $_SERVER['HTTPS']='on';
+
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
 define('DB_NAME', getenv('DB_NAME'));