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: