Skip to content

Commit

Permalink
Add docker-compose with broker for local setup
Browse files Browse the repository at this point in the history
  • Loading branch information
umluizlima committed May 25, 2020
1 parent b32aa66 commit fe94897
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Settings(BaseSettings):
SENDGRID_API_KEY: str = "get_your_api_key_from_sendgrid_dashboard"
MAILJET_API_KEY: str = "get_your_api_key_from_mailjet_dashboard"
MAILJET_API_SECRET: str = "get_your_api_secret_from_mailjet_dashboard"
BROKER_URL: str = "amqp://localhost"
BROKER_URL: str = "amqp://rabbitmq:rabbitmq@localhost"
BROKER_POOL_LIMIT: Optional[int] = 1

class Config:
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3"

services:
broker:
image: rabbitmq:3.8.3-alpine
container_name: "email-sender-broker"
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
ports:
- "5672:5672"

0 comments on commit fe94897

Please sign in to comment.