Skip to content

Commit

Permalink
Database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
IakMastro committed May 12, 2021
1 parent 2a5863d commit 4e1db4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

app = Flask(__name__)
app.config.from_object(__name__)
mongo_client = pymongo.MongoClient("mongodb://datinguser:datinguserpasswd@ff4c716a611f:27017/")
mongo_client = pymongo.MongoClient("mongodb://datinguser:datinguserpasswd@mongodb:27017/")
CORS(app, resources={r'/*': {'origins': '*'}})


Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:

mongo:
image: mongo
container_name: mongodb
restart: always
ports:
- "27017:27017"
Expand Down

0 comments on commit 4e1db4f

Please sign in to comment.