Skip to content

Commit

Permalink
added .env.example + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruvesa committed Apr 5, 2024
1 parent dd9deaf commit e99484e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Empty file added course/module-2/.Readme.md
Empty file.
9 changes: 9 additions & 0 deletions course/module-2/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#MongoDB Config
MONGO_DATABASE_HOST: str = "mongodb://localhost:30001,localhost:30002,localhost:30003/?replicaSet=my-replica-set"
MONGO_DATABASE_NAME: str = "admin"

#RabbitMQ Config
RABBITMQ_HOST: str = "localhost" # or the Docker host if running remotely
RABBITMQ_PORT: int = 5673 # Port mapped in Docker Compose
RABBITMQ_DEFAULT_USERNAME: str = "guest" # Default username
RABBITMQ_DEFAULT_PASSWORD: str = "guest" # Default password
3 changes: 0 additions & 3 deletions course/module-2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
class AppSettings(BaseSettings):

# MongoDB configs
# MONGO_DATABASE_HOST: str = "mongodb://localhost:27017/?replicaSet=rs0"
MONGO_DATABASE_HOST: str = "mongodb://localhost:30001,localhost:30002,localhost:30003/?replicaSet=my-replica-set"

# MONGO_DATABASE_HOST: str = "mongodb://host.docker.internal:27017/?replicaSet=rs0"
MONGO_DATABASE_NAME: str = "admin"

RABBITMQ_HOST: str = "localhost" # or the Docker host if running remotely
Expand Down

0 comments on commit e99484e

Please sign in to comment.