Skip to content

Commit

Permalink
Change 'MYSQL_USERNAME' to 'MYSQL_USER'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizcko committed Jul 11, 2024
1 parent b3dc591 commit 9585ef1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENV GAMMU_PIN "1234"
ENV GAMMU_DEBUG_LEVEL "0"

ENV MYSQL_HOST "localhost"
ENV MYSQL_USERNAME "root"
ENV MYSQL_USER "root"
ENV MYSQL_PASSWORD "toor"
ENV MYSQL_DATABASE "smsd"

Expand Down
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ services:
- "db"
environment:
- MYSQL_HOST=db
- MYSQL_USERNAME=sms-gateway
- MYSQL_USER=sms-gateway
- MYSQL_PASSWORD=Bpj7hXNCextgnzSWckFybV
- MYSQL_DATABASE=smsd
- GAMMU_DEVICE=/dev/phone
Expand Down Expand Up @@ -106,7 +106,7 @@ $ docker-compose up -d
default value : "localhost"
description : Database server address

#### MYSQL_USERNAME
#### MYSQL_USER
default value : "root"
description : User name used for connection to a database

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- "db"
environment:
- MYSQL_HOST=db
- MYSQL_USERNAME=sms-gateway
- MYSQL_USER=sms-gateway
- MYSQL_PASSWORD=Bpj7hXNCextgnzSWckFybV
- MYSQL_DATABASE=smsd
- GAMMU_DEVICE=/dev/phone
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PIN = ${GAMMU_PIN}
Service = sql
Driver = native_mysql
Host = ${MYSQL_HOST}
User = ${MYSQL_USERNAME}
User = ${MYSQL_USER}
Password = ${MYSQL_PASSWORD}
Database = ${MYSQL_DATABASE}
Expand Down
4 changes: 2 additions & 2 deletions src/environment/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@

# DB config
mysql_host = os.environ.get("MYSQL_HOST", "localhost")
mysql_username = os.environ.get("MYSQL_USERNAME", "root")
mysql_user = os.environ.get("MYSQL_USER", "root")
mysql_password = os.environ.get("MYSQL_PASSWORD", "toor")
mysql_database = os.environ.get("MYSQL_DATABASE", "smsd")

database_config = {
"host": mysql_host,
"username": mysql_username,
"username": mysql_user,
"password": mysql_password,
"database": mysql_database
}
Expand Down

0 comments on commit 9585ef1

Please sign in to comment.