Advertisement
Guest User

Untitled

a guest
Aug 30th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. version: "2"
  2. services:
  3.  
  4. db:
  5. image: postgres
  6. volumes:
  7. - db_data:/var/lib/postgresql/data
  8. - ./backup:/backup
  9. ports:
  10. - "8001:5432"
  11. environment:
  12. - POSTGRES_DB=happyherbivore
  13. - POSTGRES_USER=admin
  14. - POSTGRES_PASSWORD=password
  15.  
  16. app:
  17. dns: 8.8.8.8
  18. ports:
  19. - "8000:8000"
  20. build: .
  21. environment:
  22. DB_HOST: db
  23. DB_USER: admin
  24. DB_PASS: password
  25. DB_NAME: happyherbivore
  26.  
  27. ALL-YOUR-SETTINGS
  28. volumes:
  29. - .:/app
  30. command: python manage.py runserver_plus 0.0.0.0:8000
  31.  
  32. volumes:
  33. db_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement