Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. version: "3.7"
  2.  
  3. services:
  4.  
  5. ghost:
  6. container_name: ghost
  7. image: ghost:3.0.0
  8. restart: always
  9. ports:
  10. - 80:2368
  11. environment:
  12. database__client: mysql
  13. database__connection__host: db
  14. database__connection__user: ghost_user
  15. database__connection__password: example
  16. database__connection__database: ghost
  17. url: http://localhost
  18. depends_on:
  19. - db
  20. networks:
  21. - backend
  22. - frontend
  23. deploy:
  24. restart_policy:
  25. condition: on-failure
  26. delay: 5s
  27. max_attempts: 3
  28. window: 120s
  29. replicas: 7
  30. resources:
  31. limits:
  32. memory: "128M"
  33. cpus: "250m"
  34. reservations:
  35. memory: "64M"
  36. cpus: "50m"
  37. update_config:
  38. parallelism: 1
  39. delay: 30s
  40. order: stop-first
  41. mode: replicated
  42.  
  43. db:
  44. container_name: db
  45. image: mysql:5.7
  46. restart: always
  47. environment:
  48. MYSQL_RANDOM_ROOT_PASSWORD: "yes"
  49. MYSQL_DATABASE: ghost
  50. MYSQL_USER: ghost_user
  51. MYSQL_PASSWORD: example
  52. volumes:
  53. - db-storage:/var/lib/mysql
  54. networks:
  55. - backend
  56. deploy:
  57.  
  58. adminer:
  59. container_name: adminer
  60. image: adminer
  61. restart: on-failure
  62. ports:
  63. - 8080:8080
  64. networks:
  65. - tools
  66. - backend
  67. deploy:
  68. replicas: 1
  69. resources:
  70. limits:
  71. memory: "128M"
  72. cpus: "500m"
  73. reservations:
  74. memory: "64M"
  75. cpus: "250m"
  76.  
  77. redis:
  78. container_name: redis
  79. image: redis:latest
  80. volumes:
  81. - redis-storage:/data
  82. entrypoint: ["redis-server", "--appendonly", "yes"]
  83. restart: always
  84. networks:
  85. - backend
  86. deploy:
  87. resources:
  88. limits:
  89. memory: "128M"
  90. cpus: "500m"
  91. reservations:
  92. memory: "64M"
  93. cpus: "250m"
  94.  
  95. volumes:
  96. db-storage:
  97. name: db-storage-data
  98. redis-storage:
  99. name: db-storage-data
  100.  
  101. networks:
  102. backend:
  103. tools:
  104. frontend:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement