docker-compose.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. depends_on:
  94. - php
  95. admin:
  96. container_name: admin
  97. build:
  98. context: .
  99. dockerfile: docker/node/Dockerfile
  100. volumes:
  101. - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
  102. tty: true
  103. ports:
  104. - 3000:3000
  105. - 3001:3001
  106. environment:
  107. - VIRTUAL_HOST=${ADMIN_VIRTUAL_HOST}
  108. - VIRTUAL_PORT=${ADMIN_PORT}
  109. - NODE_ENV=docker
  110. depends_on:
  111. - api
  112. portail:
  113. container_name: portail
  114. build:
  115. context: .
  116. dockerfile: docker/typo3/Dockerfile
  117. args:
  118. - COMPOSER_HASH=${COMPOSER_HASH}
  119. restart: always
  120. volumes:
  121. - ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php
  122. - ./apps/typo3/websites:/var/www/html/websites:cached
  123. - ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
  124. - ./apps/typo3/themes/BlueSky:/var/www/html/fileadmin/theme_gallery/BlueSky:cached
  125. - ./apps/typo3/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
  126. - ./apps/typo3/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
  127. - ./apps/typo3/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
  128. - ./apps/typo3/typo3extension/theme_gallery:/var/www/html/typo3conf/ext/theme_gallery:cached
  129. - ./apps/typo3/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
  130. - ./apps/typo3/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
  131. environment:
  132. - VIRTUAL_HOST=${PORTAIL_VIRTUAL_HOST}
  133. - HTTPS_METHOD=noredirect
  134. depends_on:
  135. - api
  136. adminassos:
  137. container_name: adminassos
  138. build:
  139. context: .
  140. dockerfile: docker/adminassos/Dockerfile
  141. restart: always
  142. volumes:
  143. - ./apps/opentalent:/var/source/opentalent:rw,cached
  144. - ./apps/vendor:/var/source/vendor:rw,cached
  145. - ./apps/opentalent-config:/var/source/config:rw,cached
  146. environment:
  147. - VIRTUAL_HOST=${V59_VIRTUAL_HOST}
  148. depends_on:
  149. - api
  150. mailcatcher:
  151. container_name: mailcatcher
  152. image: sj26/mailcatcher
  153. restart: always
  154. ports:
  155. - '1025:1025'
  156. environment:
  157. - VIRTUAL_HOST=${MAILCATCHER_VIRTUAL_HOST}
  158. - VIRTUAL_PORT=${MAILCATCHER_PORT}
  159. depends_on:
  160. - nginx-proxy
  161. blackfire:
  162. container_name: blackfire
  163. image: blackfire/blackfire
  164. environment:
  165. # Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables.
  166. - ${BLACK_FIRE_ID}
  167. - ${BLACK_FIRE_TOKEN}
  168. - VIRTUAL_HOST=${BLACK_FIRE_VIRTUAL_HOST}
  169. - VIRTUAL_PORT=${BLACK_FIRE_PORT}
  170. depends_on:
  171. - php
  172. metabase:
  173. image: metabase/metabase
  174. restart: always
  175. environment:
  176. - VIRTUAL_HOST=${METABASE_VIRTUAL_HOST}
  177. - VIRTUAL_PORT=${METABASE_PORT}
  178. depends_on:
  179. - db
  180. volumes:
  181. mysqldata: ~
  182. elasticsearchdata: ~
  183. certs: ~
  184. # On rajoute un volume (de données non accessibles en dehors)
  185. appdata: ~