Last active
          December 21, 2021 00:23 
        
      - 
      
- 
        Save HRKings/6d2b6281d3ccc009e494bdd24f9585d1 to your computer and use it in GitHub Desktop. 
    PostgreSQL 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: | |
| postgres: | |
| container_name: postgres | |
| image: postgres:alpine | |
| environment: | |
| POSTGRES_USER: ${POSTGRES_USER:-postgres} | |
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} | |
| PGDATA: /data/postgres | |
| volumes: | |
| - ./postgres:/data/postgres | |
| ports: | |
| - "5432:5432" | |
| restart: unless-stopped | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment