Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion development.ini-TEMPLATE
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pyramid.includes = pyramid_debugtoolbar
# '127.0.0.1' and '::1'.
# 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.
admintoken = admin

[server:main]
Expand Down
36 changes: 26 additions & 10 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,32 @@ services:
environment:
ADMIN_TOKEN:
LOGGING_LEVEL: DEBUG
MONGODB_HOST:
MONGODB_HOST: mongodb://mongodb:27017/articlemeta
MONGODB_PORT:
SENTRY_DSN:
command:
- gunicorn
- --paste
- config.ini
- -w
- '4'
- -b
- 0.0.0.0
labels:
io.rancher.container.pull_image: always
- gunicorn
- --paste
- config.ini
- -w
- '4'
- -b
- 0.0.0.0
depends_on:
- mongodb
networks:
- articlemeta-network
ports:
- "8000:8000"

mongodb:
image: mongodb/mongodb-community-server:latest
container_name: articlemeta
ports:
- "27017:27017"
networks:
- articlemeta-network

networks:
articlemeta-network:
driver: bridge