egorkuzmichev

Untitled

Nov 7th, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. version: '3.8'
  2. services:
  3. nginx:
  4. image: pastvu/nginx
  5. networks:
  6. - traefik-public
  7. - net
  8. volumes:
  9. - store:/store:ro
  10. - sitemap:/sitemap
  11. deploy:
  12. placement:
  13. constraints:
  14. - node.labels.pastvu.pastvu-data == true
  15. labels:
  16. - traefik.enable=true
  17. - traefik.docker.network=traefik-public
  18. - traefik.constraint-label=traefik-public
  19. # CORS
  20. - traefik.http.middlewares.cors-header.headers.accesscontrolallowmethods=GET,OPTIONS,POST
  21. - traefik.http.middlewares.cors-header.headers.accesscontrolalloworiginlist=*
  22. - traefik.http.middlewares.cors-header.headers.accesscontrolmaxage=100
  23. - traefik.http.middlewares.cors-header.headers.addvaryheader=true
  24.  
  25. - traefik.http.routers.pastvu-http.rule=Host(`${DOMAIN?Variable not set}`)
  26. - traefik.http.routers.pastvu-http.entrypoints=http
  27. - traefik.http.routers.pastvu-http.middlewares=https-redirect,cors-header@docker
  28. - traefik.http.routers.pastvu-https.rule=Host(`${DOMAIN?Variable not set}`)
  29. - traefik.http.routers.pastvu-https.entrypoints=https
  30. - traefik.http.routers.pastvu-https.tls=true
  31. - traefik.http.routers.pastvu-https.tls.certresolver=le
  32. - traefik.http.services.pastvu.loadbalancer.server.port=80
  33.  
  34. mongo:
  35. networks:
  36. - net
  37. image: pastvu/mongo:3.2.22
  38. volumes:
  39. - mongo:/data/db
  40.  
  41. redis:
  42. networks:
  43. - net
  44. image: redis:5.0.7
  45.  
  46. app_ru:
  47. networks:
  48. - net
  49. image: pastvu/pastvu
  50. volumes:
  51. - store:/store
  52. environment:
  53. - CONFIG=/pastvu
  54. - DOMAIN
  55. configs:
  56. - pastvu
  57.  
  58. app_en:
  59. networks:
  60. - net
  61. image: pastvu/pastvu:en
  62. environment:
  63. - LANG=en
  64. - CONFIG=/pastvu
  65. - DOMAIN
  66. volumes:
  67. - store:/store
  68. configs:
  69. - pastvu
  70.  
  71. uploader:
  72. networks:
  73. - net
  74. image: pastvu/pastvu
  75. environment:
  76. - MODULE=uploader
  77. - CONFIG=/pastvu
  78. - DOMAIN
  79. volumes:
  80. - store:/store
  81. configs:
  82. - pastvu
  83.  
  84. downloader:
  85. networks:
  86. - net
  87. image: pastvu/pastvu
  88. environment:
  89. - MODULE=downloader
  90. - CONFIG=/pastvu
  91. - DOMAIN
  92. volumes:
  93. - store:/store:ro
  94. configs:
  95. - pastvu
  96.  
  97. sitemap:
  98. networks:
  99. - net
  100. image: pastvu/pastvu
  101. environment:
  102. - MODULE=sitemap
  103. - CONFIG=/pastvu
  104. - DOMAIN
  105. volumes:
  106. - sitemap:/sitemap
  107. configs:
  108. - pastvu
  109.  
  110. configs:
  111. pastvu:
  112. file: ./config/pastvu.config.js
  113.  
  114. networks:
  115. net:
  116. driver: overlay
  117. attachable: true
  118. traefik-public:
  119. external: true
  120.  
  121. volumes:
  122. store:
  123. sitemap:
  124. mongo:
  125.  
Add Comment
Please, Sign In to add comment