diff --git a/README.md b/README.md index 5365c01..a03cf9e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Start up a MongoDB database: Start up the app: -- run command, `docker run -ti --rm -d -p 5000:5000 -e MONGO_DBNAME=flask-mongodb-web-app-example -e MONGO_URI="mongodb://admin:secret@host.docker.internal:27017/example?authSource=admin&retryWrites=true&w=majority" bloombar/flask-mongodb-web-app-example` +- run command, `docker run -ti --rm -d -p 5000:5000 -e MONGO_DBNAME=flask-mongodb-web-app-example -e MONGO_URI="mongodb://admin:secret@host.docker.internal:27017" bloombar/flask-mongodb-web-app-example` - if you see an error about the port number being already in use, change the first `5000` in the command to a different port number, e.g. `-p 10000:5000` to use your computer's port `10000`. View the app in your browser: diff --git a/env.example b/env.example index 8018d6b..550fb9c 100644 --- a/env.example +++ b/env.example @@ -1,5 +1,5 @@ MONGO_DBNAME=your_db_name -MONGO_URI="mongodb://your_db_username:your_db_password@your_db_host_server_name:27017/your_db_name?authSource=admin&retryWrites=true&w=majority" +MONGO_URI="mongodb://your_db_username:your_db_password@your_db_host_server_name:27017" FLASK_APP=app.py FLASK_ENV=development FLASK_PORT=5000