Skip to content

Conversation

@samuelveigarangel
Copy link
Contributor

O que esse PR faz?

  • Melhora ambiente dev

Onde a revisão poderia começar?

pelos commits

Como este poderia ser testado manualmente?

realizar o build do ambiente dev

Algum cenário de contexto que queira dar?

N/A

Screenshots

N/A

Quais são tickets relevantes?

N/A

Referências

N/A

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR configures MongoDB connectivity for local development by adding a MongoDB service to the docker-compose setup and updating connection URIs in configuration templates.

  • Adds a MongoDB container service to the docker-compose configuration
  • Updates MongoDB connection URIs to include protocol and database name
  • Establishes networking between services via a bridge network

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docker-compose-dev.yml Adds MongoDB service container, networking configuration, and updates the MONGODB_HOST environment variable to use the full MongoDB URI
development.ini-TEMPLATE Updates mongo_uri to include HTTP protocol prefix and database name

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# debugtoolbar.hosts = 127.0.0.1 ::1

mongo_uri = 127.0.0.1:27017
mongo_uri = http://127.0.0.1:27017/articlemeta
Copy link

Copilot AI Nov 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MongoDB URIs should use the 'mongodb://' protocol, not 'http://'. The http:// prefix is incorrect for MongoDB connections and will cause connection failures. Based on the code in controller.py line 257-258, the URI is parsed with urlparse and expects a proper MongoDB URI format.

Suggested change
mongo_uri = http://127.0.0.1:27017/articlemeta
mongo_uri = mongodb://127.0.0.1:27017/articlemeta

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant