Change to MYSQL_HOST
This commit is contained in:
parent
44ef6eec34
commit
b7b51a1b70
2
core.py
2
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()
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user