docker-compose.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. restart: always
  72. volumes:
  73. # Version Symfony 2
  74. - appdata:/var/www/html/app/cache/
  75. - appdata:/var/www/html/app/logs/
  76. # Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
  77. - ./apps/opentalent-platform:/var/www/html:cached
  78. # A l'inverse, les vendors seront surtout modifiés dans le container
  79. - ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated
  80. depends_on:
  81. - db
  82. - es
  83. - thumbor
  84. - nginx-proxy
  85. api:
  86. container_name: api
  87. image: nginx:alpine
  88. volumes:
  89. - ./apps/opentalent-platform/web:/var/www/html/web:rw,cached
  90. - ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:cached
  91. environment:
  92. - VIRTUAL_HOST=${API_VIRTUAL_HOST}
  93. - HTTPS_METHOD=noredirect
  94. depends_on:
  95. - php
  96. admin:
  97. container_name: admin
  98. build:
  99. context: .
  100. dockerfile: docker/node/Dockerfile
  101. volumes:
  102. - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
  103. tty: true
  104. ports:
  105. - 3000:3000
  106. - 3001:3001
  107. environment:
  108. - VIRTUAL_HOST=${ADMIN_VIRTUAL_HOST}
  109. - VIRTUAL_PORT=${ADMIN_PORT}
  110. - NODE_ENV=docker
  111. - HTTPS_METHOD=noredirect
  112. depends_on:
  113. - api
  114. portail:
  115. container_name: portail
  116. build:
  117. context: .
  118. dockerfile: docker/typo3/Dockerfile
  119. args:
  120. - COMPOSER_HASH=${COMPOSER_HASH}
  121. restart: always
  122. volumes:
  123. - ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php
  124. - ./apps/typo3/websites:/var/www/html/websites:cached
  125. - ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
  126. - ./apps/typo3/themes/BlueSky:/var/www/html/fileadmin/theme_gallery/BlueSky:cached
  127. - ./apps/typo3/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
  128. - ./apps/typo3/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
  129. - ./apps/typo3/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
  130. - ./apps/typo3/typo3extension/theme_gallery:/var/www/html/typo3conf/ext/theme_gallery:cached
  131. - ./apps/typo3/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
  132. - ./apps/typo3/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
  133. environment:
  134. - VIRTUAL_HOST=${PORTAIL_VIRTUAL_HOST}
  135. - HTTPS_METHOD=noredirect
  136. depends_on:
  137. - api
  138. adminassos:
  139. container_name: adminassos
  140. build:
  141. context: .
  142. dockerfile: docker/adminassos/Dockerfile
  143. restart: always
  144. volumes:
  145. - ./apps/opentalent:/var/source/opentalent:rw,cached
  146. - ./apps/vendor:/var/source/vendor:rw,cached
  147. - ./apps/opentalent-config:/var/source/config:rw,cached
  148. environment:
  149. - VIRTUAL_HOST=${V59_VIRTUAL_HOST}
  150. depends_on:
  151. - api
  152. mailcatcher:
  153. container_name: mailcatcher
  154. image: sj26/mailcatcher
  155. restart: always
  156. ports:
  157. - '1025:1025'
  158. environment:
  159. - VIRTUAL_HOST=${MAILCATCHER_VIRTUAL_HOST}
  160. - VIRTUAL_PORT=${MAILCATCHER_PORT}
  161. depends_on:
  162. - nginx-proxy
  163. blackfire:
  164. container_name: blackfire
  165. image: blackfire/blackfire
  166. environment:
  167. # Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables.
  168. - ${BLACK_FIRE_ID}
  169. - ${BLACK_FIRE_TOKEN}
  170. - VIRTUAL_HOST=${BLACK_FIRE_VIRTUAL_HOST}
  171. - VIRTUAL_PORT=${BLACK_FIRE_PORT}
  172. depends_on:
  173. - php
  174. metabase:
  175. image: metabase/metabase
  176. restart: always
  177. environment:
  178. - VIRTUAL_HOST=${METABASE_VIRTUAL_HOST}
  179. - VIRTUAL_PORT=${METABASE_PORT}
  180. depends_on:
  181. - db
  182. volumes:
  183. mysqldata: ~
  184. elasticsearchdata: ~
  185. certs: ~
  186. # On rajoute un volume (de données non accessibles en dehors)
  187. appdata: ~