Change to MYSQL_HOST

This commit is contained in:
Michel Roux 2019-11-28 17:55:47 +01:00
parent 44ef6eec34
commit b7b51a1b70
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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: