Created
April 16, 2019 14:28
-
-
Save NyaGarcia/232be7fedb0247e05bb2d572d0b67424 to your computer and use it in GitHub Desktop.
docker-compose.yml file for dockerizing 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.1" | |
services: | |
db: | |
container_name: mongoDB | |
image: mongo:latest | |
restart: always | |
volumes: | |
- ./pokeData:/data/db | |
environment: | |
- MONGO_INITDB_DATABASE= Pokemon | |
ports: | |
- 27017:27017 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment