Advertisement
Guest User

Untitled

a guest
Jan 6th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. version: "2"
  2.  
  3. services:
  4. redis:
  5. image: redis:alpine
  6. cpu_shares: 100
  7. mem_limit: 524288000
  8. web:
  9. image: rollokb/growth-street-test:latest
  10. cpu_shares: 200
  11. mem_limit: 524288000
  12. command: python manage.py runserver 0.0.0.0:8000
  13. ports:
  14. - "8000:8000"
  15. depends_on:
  16. - redis
  17. - db
  18. db:
  19. image: postgres:9.4
  20. hostname: db
  21. cpu_shares: 100
  22. mem_limit: 524288000
  23. environment:
  24. - POSTGRES_USER=postgres
  25. - POSTGRES_PASSWORD=postgres
  26. - POSTGRES_DB=postgres
  27. ports:
  28. - "5432:5432"
  29.  
  30. worker:
  31. cpu_shares: 100
  32. mem_limit: 524288000
  33. image: rollokb/growth-street-test:latest
  34. command: celery -A growthstreet.celery worker
  35. links:
  36. - redis
  37. depends_on:
  38. - db
  39. - redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement