Created
          August 6, 2019 17:19 
        
      - 
      
- 
        Save kayode-adechinan/102d27b30e6d446611a4304367d447e4 to your computer and use it in GitHub Desktop. 
    simple docker-compose for django
  
        
  
    
      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.7' | |
| services: | |
| db: | |
| image: postgres:10.1-alpine | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data/ | |
| web: | |
| build: . | |
| command: python manage.py runserver 0.0.0.0:8000 | |
| volumes: | |
| - .:/code | |
| ports: | |
| - 8000:8000 | |
| depends_on: | |
| - db | |
| volumes: | |
| postgres_data: | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment