Skip to content

Instantly share code, notes, and snippets.

@ogiermaitre
Created March 7, 2018 08:57
Show Gist options
  • Select an option

  • Save ogiermaitre/cc205252202d07b8f8ab36e3591b2c26 to your computer and use it in GitHub Desktop.

Select an option

Save ogiermaitre/cc205252202d07b8f8ab36e3591b2c26 to your computer and use it in GitHub Desktop.
[bml3 docker] #docker #express #mongodb
version: '3'
services:
db:
image: "ogiermaitre/mongodb"
volumes:
- "./mongodb/db/:/data/db/"
- "./mongodb/seed_data:/mnt/data/"
ports:
- "27017:27017"
FROM alpine:latest
RUN apk add --update --no-cache mongodb
VOLUME /data/db
VOLUME /mnt/data
EXPOSE 27017 28017
CMD [ "mongod" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment