Created
March 7, 2018 08:57
-
-
Save ogiermaitre/cc205252202d07b8f8ab36e3591b2c26 to your computer and use it in GitHub Desktop.
[bml3 docker] #docker #express #mongodb
This file contains hidden or 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: | |
| db: | |
| image: "ogiermaitre/mongodb" | |
| volumes: | |
| - "./mongodb/db/:/data/db/" | |
| - "./mongodb/seed_data:/mnt/data/" | |
| ports: | |
| - "27017:27017" |
This file contains hidden or 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
| 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