Last active
May 3, 2024 15:53
-
-
Save linuxsimba/4b8b83fc38c5a1bdbe7f00a50e1f275b to your computer and use it in GitHub Desktop.
docker-compose for MongoDB and Mongoose UI
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: '2' | |
networks: | |
mongodb_net: | |
driver: bridge | |
ipam: | |
driver: default | |
config: | |
# Change this subnet range if it conflicts with your personal/work network | |
- subnet: 192.168.213.0/24 | |
gateway: 192.168.213.1 | |
services: | |
mongodb: | |
image: mongo:latest | |
container_name: mongodb | |
hostname: mongodb | |
networks: | |
- mongodb_net | |
ports: | |
- 27017:27017 | |
mongoclient: | |
image: mongoclient/mongoclient:latest | |
container_name: mongoclient | |
hostname: mongoclient | |
depends_on: | |
- mongodb | |
networks: | |
- mongodb_net | |
ports: | |
- 3300:3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much for this!! It will save me so much time trying to get it working! 😃