Last active
          September 12, 2023 19:04 
        
      - 
      
- 
        Save HRKings/049b37d9648168fd3b6b6fd4f5540b6e to your computer and use it in GitHub Desktop. 
    MongoDB Template Docker Compose 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
    
  
  
    
  | version: "3.9" | |
| services: | |
| mongo: | |
| container_name: mongodb | |
| image: mongo:latest | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-mongo} | |
| MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-password} | |
| volumes: | |
| - ./mongodb:/data/db | |
| ports: | |
| - "27017:27017" | |
| restart: unless-stopped | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment