Created
October 29, 2019 16:17
-
-
Save RenzoTejada/5b911b37dbd0923c56ac33929f67598c to your computer and use it in GitHub Desktop.
Docker compose para mongoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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