Skip to content

Instantly share code, notes, and snippets.

Avatar

Gary Crawford garycrawford

View GitHub Profile
@garycrawford
garycrawford / docker-compose.yml
Created Jul 9, 2015
MongoDB Replica Set docker-compose.yml
View docker-compose.yml
primary:
image: mongo:3.0
volumes:
- ./p:/data
ports:
- "27017:27017"
# Our current version of docker-compose doesn't allow extra_hosts which would be the best way
# to add curcular dependency container links in this case. We cant upgrade docker-compose
# without upgrading docker to 1.7, and we can't do that without upgrading the kernel on our
# CentOS VM's. As such we are using the hostname hask below to allow primary and secondary
You can’t perform that action at this time.