docker-compose.yaml 5.6 KB

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