docker-compose.yaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. version: '3.3'
  2. services:
  3. nginx-proxy:
  4. container_name: nginx-proxy
  5. build:
  6. context: .
  7. dockerfile: docker/nginx/Dockerfile
  8. restart: always
  9. ports:
  10. - 80:80
  11. - 443:443
  12. volumes:
  13. - /var/run/docker.sock:/tmp/docker.sock:ro
  14. - /etc/nginx/vhost.d
  15. - /usr/share/nginx/html
  16. db:
  17. container_name: mariaDb
  18. build:
  19. context: .
  20. dockerfile: docker/mariaDb/Dockerfile
  21. restart: always
  22. ports:
  23. - 3306:3306
  24. volumes:
  25. - ./mysqldata:/var/lib/mysql
  26. - ./apps/env:/env:cached
  27. - ./apps/metabase:/usr/metabase:cached
  28. environment:
  29. MYSQL_ROOT_PASSWORD: ${MYSQL_PASS}
  30. phpmyadmin:
  31. container_name: phpmyadmin
  32. image: phpmyadmin/phpmyadmin
  33. environment:
  34. - VIRTUAL_HOST=${PHPMYADMIN_VIRTUAL_HOST}
  35. restart: always
  36. depends_on:
  37. - db
  38. es:
  39. container_name: es
  40. image: elasticsearch:2.4.6-alpine
  41. restart: always
  42. volumes:
  43. - ./elasticsearchdata:/usr/share/elasticsearch/data
  44. - ./docker/elasticsearch/conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:cached
  45. environment:
  46. - cluster.name=docker-cluster
  47. - bootstrap.memory_lock=true
  48. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  49. - VIRTUAL_HOST=${ES_VIRTUAL_HOST}
  50. - VIRTUAL_PORT=${ES_PORT}
  51. ulimits:
  52. memlock:
  53. soft: -1
  54. hard: -1
  55. thumbor:
  56. container_name: thumbor
  57. image: minimalcompact/thumbor
  58. restart: always
  59. environment:
  60. - VIRTUAL_HOST=${THUMBOR_VIRTUAL_HOST}
  61. - LOADER=thumbor.loaders.file_loader
  62. # volumes:
  63. # - ./apps/opentalent-platform/web/files:/data/loader:cached
  64. php:
  65. container_name: php
  66. build:
  67. context: .
  68. dockerfile: docker/php/Dockerfile
  69. args:
  70. - COMPOSER_HASH=${COMPOSER_HASH}
  71. - OS=${OS}
  72. restart: always
  73. volumes:
  74. # Version Symfony 2
  75. - appdata:/var/www/html/app/cache/
  76. - appdata:/var/www/html/app/logs/
  77. # Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
  78. - ./apps/opentalent-platform:/var/www/html:cached
  79. # A l'inverse, les vendors seront surtout modifiés dans le container
  80. - ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated
  81. depends_on:
  82. - db
  83. - es
  84. - thumbor
  85. - nginx-proxy
  86. api:
  87. container_name: api
  88. image: nginx:alpine
  89. volumes:
  90. - ./apps/opentalent-platform/web:/var/www/html/web:rw,cached
  91. - ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:cached
  92. environment:
  93. - VIRTUAL_HOST=${API_VIRTUAL_HOST}
  94. - HTTPS_METHOD=noredirect
  95. depends_on:
  96. - php
  97. admin:
  98. container_name: admin
  99. build:
  100. context: .
  101. dockerfile: docker/node/Dockerfile
  102. volumes:
  103. - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
  104. tty: true
  105. ports:
  106. - 3000:3000
  107. - 3001:3001
  108. environment:
  109. - VIRTUAL_HOST=${ADMIN_VIRTUAL_HOST}
  110. - VIRTUAL_PORT=${ADMIN_PORT}
  111. - NODE_ENV=docker
  112. - HTTPS_METHOD=noredirect
  113. depends_on:
  114. - api
  115. portail:
  116. container_name: portail
  117. build:
  118. context: .
  119. dockerfile: docker/typo3/Dockerfile
  120. args:
  121. - COMPOSER_HASH=${COMPOSER_HASH}
  122. restart: always
  123. volumes:
  124. - ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php
  125. - ./apps/typo3/websites:/var/www/html/websites:cached
  126. - ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
  127. - ./apps/typo3/themes/BlueSky:/var/www/html/fileadmin/theme_gallery/BlueSky:cached
  128. - ./apps/typo3/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
  129. - ./apps/typo3/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
  130. - ./apps/typo3/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
  131. - ./apps/typo3/typo3extension/theme_gallery:/var/www/html/typo3conf/ext/theme_gallery:cached
  132. - ./apps/typo3/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
  133. - ./apps/typo3/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
  134. environment:
  135. - VIRTUAL_HOST=${PORTAIL_VIRTUAL_HOST}
  136. - HTTPS_METHOD=noredirect
  137. depends_on:
  138. - api
  139. adminassos:
  140. container_name: adminassos
  141. build:
  142. context: .
  143. dockerfile: docker/adminassos/Dockerfile
  144. args:
  145. - OS=${OS}
  146. restart: always
  147. volumes:
  148. - ./apps/opentalent:/var/source/opentalent:rw,cached
  149. - ./apps/vendor:/var/source/vendor:rw,cached
  150. - ./apps/opentalent-config:/var/source/config:rw,cached
  151. environment:
  152. - VIRTUAL_HOST=${V59_VIRTUAL_HOST}
  153. depends_on:
  154. - api
  155. mailcatcher:
  156. container_name: mailcatcher
  157. image: sj26/mailcatcher
  158. restart: always
  159. ports:
  160. - '1025:1025'
  161. environment:
  162. - VIRTUAL_HOST=${MAILCATCHER_VIRTUAL_HOST}
  163. - VIRTUAL_PORT=${MAILCATCHER_PORT}
  164. depends_on:
  165. - nginx-proxy
  166. blackfire:
  167. container_name: blackfire
  168. image: blackfire/blackfire
  169. environment:
  170. # Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables.
  171. - ${BLACK_FIRE_ID}
  172. - ${BLACK_FIRE_TOKEN}
  173. - VIRTUAL_HOST=${BLACK_FIRE_VIRTUAL_HOST}
  174. - VIRTUAL_PORT=${BLACK_FIRE_PORT}
  175. depends_on:
  176. - php
  177. metabase:
  178. image: metabase/metabase
  179. restart: always
  180. environment:
  181. - VIRTUAL_HOST=${METABASE_VIRTUAL_HOST}
  182. - VIRTUAL_PORT=${METABASE_PORT}
  183. depends_on:
  184. - db
  185. volumes:
  186. mysqldata: ~
  187. elasticsearchdata: ~
  188. # On rajoute un volume (de données non accessibles en dehors)
  189. appdata: ~