Last active
April 15, 2020 22:32
-
-
Save juancsr/1fec7275a08302b1a87d06bc3845e53e to your computer and use it in GitHub Desktop.
MongoDB yml file
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
# remember to run docker network create back_end | |
version: '3' | |
# mongodb | |
services: | |
db: | |
image: mongo:latest | |
container_name: mongodb_backend_develop | |
environment: | |
- MONGO_DATA_DIR=/data/db | |
- MONGO_LOG_DIR=/var/log/mongodb | |
- MONGO_INITDB_ROOT_USERNAME=${MONGO_CRUD_DB_USER} | |
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_CRUD_DB_PASS} | |
volumes: | |
- mongo_data:/data/db | |
ports: | |
- ${DB_PORT}:27017 | |
networks: | |
- back_end | |
networks: | |
back_end: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment