Advertisement
Guest User

Untitled

a guest
Aug 17th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. db:
  2. image: mysql:5.6
  3. environment:
  4. MYSQL_DATABASE: ralph_ng
  5. MYSQL_ROOT_PASSWORD: ralph_ng
  6. MYSQL_USER: ralph_ng
  7. MYSQL_PASSWORD: ralph_ng
  8. volumes_from:
  9. - data
  10.  
  11. web:
  12. build: ralph
  13. restart: always
  14. ports:
  15. - "8000"
  16. volumes_from:
  17. - data
  18. links:
  19. - db:db
  20. - redis:redis
  21. env_file:
  22. - ./ralph/contrib/ralph.env
  23. command: gunicorn -w 4 -b 0.0.0.0:8000 -t 300 ralph.wsgi
  24.  
  25. nginx:
  26. image: nginx
  27. restart: always
  28. ports:
  29. - "880:80"
  30. links:
  31. - web:web
  32. volumes:
  33. - ./ralph/contrib/ralph.conf.nginx:/etc/nginx/conf.d/default.conf
  34. volumes_from:
  35. - web
  36.  
  37. data:
  38. image: mysql:5.6
  39. volumes:
  40. - /opt/static
  41. - /opt/media
  42. - /var/lib/mysql
  43. command: /bin/true
  44.  
  45. redis:
  46. image: redis:3.0
  47. restart: always
  48. ports:
  49. - "6379"
  50.  
  51. inkpy:
  52. image: ar4s/inkpy_jinja:latest
  53. restart: always
  54. links:
  55. - redis:redis
  56. env_file:
  57. - ./ralph/contrib/ralph.env
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement