From b7b51a1b70103ebab0121ae60c2e43554f7a19b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Thu, 28 Nov 2019 17:55:47 +0100 Subject: [PATCH] Change to MYSQL_HOST --- core.py | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core.py b/core.py index 63df234..a2f91d0 100644 --- a/core.py +++ b/core.py @@ -11,7 +11,7 @@ app = Flask(__name__) db_user = environ.get('MYSQL_USER') db_password = environ.get('MYSQL_PASSWORD') db_name = environ.get('MYSQL_DATABASE') -db_host = environ.get('MYSQL_HOSTNAME') +db_host = environ.get('MYSQL_HOST') if not db_host or not db_user or not db_password or not db_name: print('Missing connection environment variables') exit() diff --git a/docker-compose.yml b/docker-compose.yml index 944ea90..c1d952d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: MYSQL_USER: root MYSQL_PASSWORD: root MYSQL_DATABASE: www - MYSQL_HOSTNAME: db + MYSQL_HOST: db ADMIN_USERNAME: admin ADMIN_PASSWORD: secret volumes: