Skip to content

Commit

Permalink
Added MYSQL DSN environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorChristie committed Jun 6, 2018
1 parent bd20364 commit c1fe18a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker/tinode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ ENV TARGET_DB=$TARGET_DB
# An option to reset database.
ENV RESET_DB=false

# The MYSQL DSN connection.
ENV MYSQL_DSN='root@tcp(mysql)/tinode'

# Disable chatbot plugin by default.
ENV PLUGIN_PYTHON_CHAT_BOT_ENABLED=false

Expand Down
2 changes: 1 addition & 1 deletion docker/tinode/config.template
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"adapters": {
"mysql": {
"database": "tinode",
"dsn": "root@tcp(mysql)/tinode?parseTime=true"
"dsn": "$MYSQL_DSN?parseTime=true"
},
"rethinkdb": {
"database": "tinode",
Expand Down

0 comments on commit c1fe18a

Please sign in to comment.