Skip to content

Instantly share code, notes, and snippets.

@yeomann
Forked from linuxsimba/docker-compose.yml
Created March 17, 2021 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeomann/b70292f4fed2416fe8bba978c8dbf83b to your computer and use it in GitHub Desktop.
Save yeomann/b70292f4fed2416fe8bba978c8dbf83b to your computer and use it in GitHub Desktop.
docker-compose for MongoDB and Mongoose UI
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