Skip to content

Commit

Permalink
fix services name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariiiii committed Dec 8, 2024
1 parent 6164756 commit ea7b79b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

class Config:
SECRET_KEY = os.getenv("SECRET_KEY", "supersecret")
MONGO_URI = os.getenv("MONGO_URI", "mongodb://mongo:27017/credit_database")
MONGO_URI = os.getenv("MONGO_URI", "mongodb://db:27017/credit_database")
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
mongo:
container_name: db
db:
container_name: mongo
image: mongodb/mongodb-community-server:7.0.0-ubi8
volumes:
- mongo_data:/data/db
Expand All @@ -13,9 +13,9 @@ services:
ports:
- "127.0.0.1:5000:5000"
environment:
- MONGO_URI=mongodb://mongo:27017/credit_database
- MONGO_URI=mongodb://db:27017/credit_database
depends_on:
- mongo
- db
networks:
- default

Expand Down

0 comments on commit ea7b79b

Please sign in to comment.