Last active
          March 2, 2023 09:35 
        
      - 
      
- 
        Save kafle1/bd19ecbfe2072cdc293fd0b6bf766921 to your computer and use it in GitHub Desktop. 
    Postgres test db docker
  
        
  
    
      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: | |
| pgdb: | |
| image: postgres:latest | |
| environment: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: postgres | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - ./pgdata:/var/lib/postgresql/data | |
| version: '3' | |
| services: | |
| mongo-db: | |
| image: mongo:latest | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: root | |
| MONGO_INITDB_ROOT_PASSWORD: example | |
| MONGO_INITDB_DATABASE: mydb | |
| ports: | |
| - "27017:27017" | |
| volumes: | |
| - ./mongodata:/data/db | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment