Advertisement
Guest User

fsdf

a guest
May 16th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. ---
  2. version: '2'
  3.  
  4. services:
  5.  
  6. web:
  7. command: runserver web:8000
  8. volumes:
  9. - $PWD:/app/app
  10. links:
  11. - postgres
  12. depends_on:
  13. - postgres
  14.  
  15. worker:
  16. volumes:
  17. - $PWD:/app/app
  18. links:
  19. - postgres
  20. depends_on:
  21. - postgres
  22.  
  23. # Local DB
  24. postgres:
  25. container_name: postgres
  26. image: postgres
  27. volumes:
  28. - $PWD/db.dump:/db.dump
  29. - $PWD/extras/importdb.sh:/docker-entrypoint-initdb.d/importdb.sh
  30. environment:
  31. POSTGRES_DB: "kiwibasedb"
  32. POSTGRES_USER: "kiwibaseuser"
  33. POSTGRES_PASSWORD: "pw"
  34. ports:
  35. - "5432:5432"
  36.  
  37. # Nginx proxy
  38. nginx:
  39. container_name: nginx
  40. image: nginx
  41. links:
  42. - web
  43. depends_on:
  44. - web
  45. restart: always
  46. ports:
  47. - "8000:80"
  48. volumes:
  49. - "static:/app/static"
  50. - "$PWD/extras/nginx.local.conf:/etc/nginx/conf.d/default.conf:ro"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement