Guest User

Untitled

a guest
Feb 17th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. version: '3'
  2. services:
  3.  
  4. db:
  5. image: mdillon/postgis:9.6-alpine
  6. volumes:
  7. - ./postgres-data:/var/lib/postgresql/data
  8.  
  9.  
  10. django:
  11. build:
  12. context: .
  13. dockerfile: docker/Dockerfile
  14. environment:
  15. - DJANGO_SETTINGS_MODULE={{config.module}}
  16. - SECRET_KEY={{secretkey}}
  17. - NAME={{dbusername}}
  18. - USER={{dbuser}}
  19. - HOST={{dbhost}}
  20. - PASSWORD={{password}}
  21. - PORT=5432
  22. volumes:
  23. - .:/application
  24. command: ["gunicorn", "--bind 0.0.0.0:8000", "config.wsgi"]
  25. depends_on:
  26. - db
  27. ports:
  28. - "8000:8000"
Add Comment
Please, Sign In to add comment