docker-compose.yaml 5.9 KB

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