Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker/docker-server: added db name #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/docker-server/.env-local-template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# MySQL

MYSQL_DATABASE=mlflow
MYSQL_ROOT_PASSWORD=efcodd
HOST_MYSQL_PORT=5306
HOST_MYSQL_DATA_DIR=/opt/mlflow_docker/mysql
Expand Down
2 changes: 2 additions & 0 deletions docker/docker-server/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
context: .
dockerfile: Dockerfile-mysql
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports:
- "${HOST_MYSQL_PORT}:3306"
Expand All @@ -24,6 +25,7 @@ services:
depends_on:
- db
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MLFLOW_ARTIFACT_URI=${MLFLOW_ARTIFACT_URI}
ports:
Expand Down
1 change: 0 additions & 1 deletion docker/docker-server/src/mysql/create_db.sql

This file was deleted.

2 changes: 1 addition & 1 deletion docker/docker-server/src/run_server.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

run() {
STORE_URI=mysql://root:${MYSQL_ROOT_PASSWORD}@db/mlflow
STORE_URI=mysql://root:${MYSQL_ROOT_PASSWORD}@db/${MYSQL_DATABASE}
echo "STORE_URI=$STORE_URI"
echo "MLFLOW_ARTIFACT_URI=$MLFLOW_ARTIFACT_URI"
mlflow server --host 0.0.0.0 --port 5000 --backend-store-uri $STORE_URI --default-artifact-root $MLFLOW_ARTIFACT_URI
Expand Down