Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker compose para mongoDB
version : '3'
services:
mongodb:
container_name: "mongodb_demo_uno"
image: bitnami/mongodb:latest
ports:
- "27018:27017"
networks:
backend-net:
ipv4_address: 120.0.111.4
environment:
- MONGODB_USERNAME=root
- MONGODB_PASSWORD=root
- MONGODB_DATABASE=mbd_demo_uno
volumes:
- "./data:/bitnami"
networks:
backend-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 120.0.111.0/26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.