docker-compose.yaml 5.8 KB

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