Guest User

Untitled

a guest
Aug 6th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. db:
  2. image: mysql:5.7
  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. command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
  11.  
  12. web:
  13. image: biznetgio/ralph
  14. restart: always
  15. ports:
  16. - "8000:8000"
  17. volumes_from:
  18. - data
  19. links:
  20. - db:db
  21. - redis:redis
  22. env_file:
  23. - ./ralph/contrib/ralph.env
  24. command: gunicorn -w 4 -b 0.0.0.0:8000 -t 300 ralph.wsgi
  25.  
  26. nginx:
  27. image: nginx
  28. restart: always
  29. ports:
  30. - "80:80"
  31. links:
  32. - web:web
  33. volumes:
  34. - ./ralph/contrib/ralph.conf.nginx:/etc/nginx/conf.d/default.conf
  35. volumes_from:
  36. - web
  37.  
  38. data:
  39. image: mysql:5.7
  40. volumes:
  41. - /opt/static
  42. - /opt/media
  43. - /var/lib/mysql
  44. command: /bin/true
  45.  
  46. redis:
  47. image: redis:3.0
  48. restart: always
  49. ports:
  50. - "6379"
  51.  
  52. inkpy:
  53. image: ar4s/inkpy_jinja:latest
  54. restart: always
  55. links:
  56. - redis:redis
  57. env_file:
  58. - ./ralph/contrib/ralph.env
Add Comment
Please, Sign In to add comment