Hi all, as the title says i created an instance of MongoDB and can’t access from my local machine or vercel instance of the backend.
In dokploy are settled the external credentials (for postgresDB is working perfect), another this I spotted is in a local server with docker-compose.yml simple file I also can’t connect maybe something is missing in the config. But I’m new on this.
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
mongodb_data: