Advertisement
Guest User

Untitled

a guest
Mar 9th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. db:
  5. restart: always
  6. image: postgres
  7. environment:
  8. - POSTGRES_USER=project
  9. - POSTGRES_PASSWORD=project
  10. volumes:
  11. - ./db/postgres:/var/lib/postgresql/data
  12.  
  13. cache:
  14. restart: always
  15. image: redis
  16.  
  17. manage:
  18. image: phpdude/project:app
  19. environment:
  20. - PRODUCTION=1
  21. entrypoint: python manage.py
  22. volumes:
  23. - ./logs/:/app/logs/
  24.  
  25. web:
  26. restart: always
  27. extends:
  28. service: manage
  29.  
  30. entrypoint: bash /app/production/web/service.web.sh
  31. links:
  32. - db
  33. - cache
  34.  
  35. nginx:
  36. restart: always
  37. image: phpdude/project:app
  38. entrypoint: ["nginx", "-g", "daemon off;"]
  39. volumes:
  40. - ./media/:/app/media/
  41. - ./logs/nginx/:/var/log/nginx/
  42. ports:
  43. - 80:80
  44.  
  45. links:
  46. - web
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement