docker-compose.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. volumes:
  2. mysqldata: ~
  3. elasticsearchdata: ~
  4. # On rajoute un volume (de données non accessibles en dehors)
  5. appdata: ~
  6. version: '3.3'
  7. services:
  8. nginx-proxy:
  9. image: jwilder/nginx-proxy
  10. container_name: proxy
  11. ports:
  12. - 80:80
  13. - 443:443
  14. volumes:
  15. - /var/run/docker.sock:/tmp/docker.sock:ro
  16. - /etc/nginx/vhost.d
  17. - /usr/share/nginx/html
  18. networks:
  19. - proxy_net
  20. front:
  21. container_name: front
  22. build:
  23. context: .
  24. dockerfile: docker/node/Dockerfile
  25. volumes:
  26. - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
  27. ports:
  28. - '3000:3000'
  29. - '3001:3001'
  30. tty: true
  31. environment:
  32. - VIRTUAL_HOST=local.admin.opentalent.fr
  33. - VIRTUAL_PORT=3000
  34. networks:
  35. - proxy_net
  36. depends_on:
  37. - nginx-proxy
  38. es:
  39. container_name: es
  40. image: elasticsearch:2.4.6
  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=local.elasticsearch.opentalent.fr
  50. - VIRTUAL_PORT=9200
  51. ulimits:
  52. memlock:
  53. soft: -1
  54. hard: -1
  55. ports:
  56. - '9200:9200'
  57. networks:
  58. - proxy_net
  59. - api
  60. depends_on:
  61. - nginx-proxy
  62. db:
  63. container_name: mariaDb
  64. build:
  65. context: .
  66. dockerfile: docker/mariaDb/Dockerfile
  67. restart: always
  68. volumes:
  69. - ./mysqldata:/var/lib/mysql
  70. - ./apps/env:/env:cached
  71. environment:
  72. MYSQL_ROOT_PASSWORD: mysql660
  73. ports:
  74. - '3306:3306'
  75. networks:
  76. - api
  77. - proxy_net
  78. web:
  79. container_name: nginx
  80. image: nginx:latest
  81. volumes:
  82. - ./apps/opentalent-platform:/var/www/html:rw,cached
  83. - ./docker/nginx/site.conf:/etc/nginx/conf.d/site.conf:cached
  84. ports:
  85. - '8080:80'
  86. depends_on:
  87. - php_fpm
  88. networks:
  89. - api
  90. - proxy_net
  91. php_fpm:
  92. container_name: back
  93. build:
  94. context: .
  95. dockerfile: docker/php/Dockerfile
  96. restart: always
  97. volumes:
  98. - ./apps/.bash_history:/root/.bash_history:cached
  99. # Version Symfony 2
  100. - appdata:/var/www/html/app/cache/
  101. - appdata:/var/www/html/app/logs/
  102. # Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
  103. - ./apps/opentalent-platform:/var/www/html/:cached
  104. # A l'inverse, les vendors seront surtout modifiés dans le container
  105. - ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated
  106. depends_on:
  107. - db
  108. - es
  109. - thumbor
  110. networks:
  111. - api
  112. - proxy_net
  113. php_apache:
  114. container_name: adminassos
  115. build:
  116. context: .
  117. dockerfile: docker/adminassos/Dockerfile
  118. restart: always
  119. volumes:
  120. - ./apps/opentalent:/var/source/opentalent:rw,cached
  121. - ./apps/vendor:/var/source/vendor:rw,cached
  122. - ./apps/opentalent-config:/var/source/config:rw,cached
  123. environment:
  124. - VIRTUAL_HOST=local.v59.opentalent.fr
  125. networks:
  126. - proxy_net
  127. - api
  128. depends_on:
  129. - db
  130. typo3:
  131. container_name: typo3
  132. build:
  133. context: .
  134. dockerfile: docker/typo3/Dockerfile
  135. restart: always
  136. volumes:
  137. - ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php
  138. - ./apps/typo3/websites:/var/www/html/websites:cached
  139. - ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
  140. - ./apps/typo3/themes:/var/www/html/theme_gallery:cached
  141. - ./apps/typo3/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
  142. - ./apps/typo3/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
  143. - ./apps/typo3/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
  144. - ./apps/typo3/typo3extension/theme_gallery:/var/www/html/typo3conf/ext/theme_gallery:cached
  145. - ./apps/typo3/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
  146. - ./apps/typo3/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
  147. environment:
  148. - VIRTUAL_HOST=local.opentalent.fr
  149. networks:
  150. - proxy_net
  151. - api
  152. depends_on:
  153. - db
  154. - nginx-proxy
  155. - php_fpm
  156. phpmyadmin:
  157. container_name: phpMyAdmin
  158. image: phpmyadmin/phpmyadmin
  159. restart: always
  160. environment:
  161. - VIRTUAL_HOST=local.phpmyadmin.opentalent.fr
  162. networks:
  163. - proxy_net
  164. depends_on:
  165. - db
  166. thumbor:
  167. container_name: thumbor
  168. image: minimalcompact/thumbor
  169. restart: always
  170. environment:
  171. - VIRTUAL_HOST=local.thumbor.opentalent.fr
  172. - LOADER=thumbor.loaders.file_loader
  173. volumes:
  174. - ./apps/opentalent-platform/web/files:/data/loader:cached
  175. networks:
  176. - proxy_net
  177. - api
  178. depends_on:
  179. - nginx-proxy
  180. mailcatcher:
  181. container_name: mailcatcher
  182. image: sj26/mailcatcher
  183. restart: always
  184. ports:
  185. - '1025:1025'
  186. - '1080:1080'
  187. environment:
  188. - VIRTUAL_HOST=local.mailcatcher.opentalent.fr
  189. - VIRTUAL_PORT=1080
  190. networks:
  191. - proxy_net
  192. - api
  193. depends_on:
  194. - nginx-proxy
  195. networks:
  196. proxy_net:
  197. driver: bridge
  198. api:
  199. driver: bridge