Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mongodb database not connected docker

# you must use port 27017 for host, if you use another port, database cannot connected

DATABASE_URI=mongodb://mongo:27017/db_name

services  
  mongo:
    container_name: mongo
    image: mongo
    ports: 
      - '27017:27017'
 
PREVIOUS NEXT
Tagged: #mongodb #database #connected #docker
ADD COMMENT
Topic
Name
2+1 =