docker-compose.yaml 5.4 KB

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