|
@@ -1,14 +1,12 @@
|
|
|
-volumes:
|
|
|
|
|
- mysqldata: ~
|
|
|
|
|
- elasticsearchdata: ~
|
|
|
|
|
- # On rajoute un volume (de données non accessibles en dehors)
|
|
|
|
|
- appdata: ~
|
|
|
|
|
-
|
|
|
|
|
version: '3.3'
|
|
version: '3.3'
|
|
|
|
|
+
|
|
|
services:
|
|
services:
|
|
|
nginx-proxy:
|
|
nginx-proxy:
|
|
|
- image: jwilder/nginx-proxy
|
|
|
|
|
- container_name: proxy
|
|
|
|
|
|
|
+ container_name: nginx-proxy
|
|
|
|
|
+ build:
|
|
|
|
|
+ context: .
|
|
|
|
|
+ dockerfile: docker/nginx/Dockerfile
|
|
|
|
|
+ restart: always
|
|
|
ports:
|
|
ports:
|
|
|
- 80:80
|
|
- 80:80
|
|
|
- 443:443
|
|
- 443:443
|
|
@@ -16,31 +14,32 @@ services:
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
- /etc/nginx/vhost.d
|
|
- /etc/nginx/vhost.d
|
|
|
- /usr/share/nginx/html
|
|
- /usr/share/nginx/html
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
|
|
|
|
|
- front:
|
|
|
|
|
- container_name: front
|
|
|
|
|
|
|
+ db:
|
|
|
|
|
+ container_name: mariaDb
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
- dockerfile: docker/node/Dockerfile
|
|
|
|
|
|
|
+ dockerfile: docker/mariaDb/Dockerfile
|
|
|
|
|
+ restart: always
|
|
|
volumes:
|
|
volumes:
|
|
|
- - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
|
|
|
|
|
- ports:
|
|
|
|
|
- - '3000:3000'
|
|
|
|
|
- - '3001:3001'
|
|
|
|
|
- tty: true
|
|
|
|
|
|
|
+ - ./mysqldata:/var/lib/mysql
|
|
|
|
|
+ - ./apps/env:/env:cached
|
|
|
|
|
+ - ./apps/metabase:/usr/metabase:cached
|
|
|
|
|
+ environment:
|
|
|
|
|
+ MYSQL_ROOT_PASSWORD: ${MYSQL_PASS}
|
|
|
|
|
+
|
|
|
|
|
+ phpmyadmin:
|
|
|
|
|
+ container_name: phpmyadmin
|
|
|
|
|
+ image: phpmyadmin/phpmyadmin
|
|
|
environment:
|
|
environment:
|
|
|
- - VIRTUAL_HOST=local.admin.opentalent.fr
|
|
|
|
|
- - VIRTUAL_PORT=3000
|
|
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${PHPMYADMIN_VIRTUAL_HOST}
|
|
|
|
|
+ restart: always
|
|
|
depends_on:
|
|
depends_on:
|
|
|
- - nginx-proxy
|
|
|
|
|
|
|
+ - db
|
|
|
|
|
|
|
|
es:
|
|
es:
|
|
|
container_name: es
|
|
container_name: es
|
|
|
- image: elasticsearch:2.4.6
|
|
|
|
|
|
|
+ image: elasticsearch:2.4.6-alpine
|
|
|
restart: always
|
|
restart: always
|
|
|
volumes:
|
|
volumes:
|
|
|
- ./elasticsearchdata:/usr/share/elasticsearch/data
|
|
- ./elasticsearchdata:/usr/share/elasticsearch/data
|
|
@@ -49,116 +48,87 @@ services:
|
|
|
- cluster.name=docker-cluster
|
|
- cluster.name=docker-cluster
|
|
|
- bootstrap.memory_lock=true
|
|
- bootstrap.memory_lock=true
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
- - VIRTUAL_HOST=local.elasticsearch.opentalent.fr
|
|
|
|
|
- - VIRTUAL_PORT=9200
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${ES_VIRTUAL_HOST}
|
|
|
|
|
+ - VIRTUAL_PORT=${ES_PORT}
|
|
|
ulimits:
|
|
ulimits:
|
|
|
memlock:
|
|
memlock:
|
|
|
soft: -1
|
|
soft: -1
|
|
|
hard: -1
|
|
hard: -1
|
|
|
- ports:
|
|
|
|
|
- - '9200:9200'
|
|
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
- - api
|
|
|
|
|
- depends_on:
|
|
|
|
|
- - nginx-proxy
|
|
|
|
|
|
|
|
|
|
- db:
|
|
|
|
|
- container_name: mariaDb
|
|
|
|
|
- build:
|
|
|
|
|
- context: .
|
|
|
|
|
- dockerfile: docker/mariaDb/Dockerfile
|
|
|
|
|
|
|
+ thumbor:
|
|
|
|
|
+ container_name: thumbor
|
|
|
|
|
+ image: minimalcompact/thumbor
|
|
|
restart: always
|
|
restart: always
|
|
|
- volumes:
|
|
|
|
|
- - ./mysqldata:/var/lib/mysql
|
|
|
|
|
- - ./apps/env:/env:cached
|
|
|
|
|
environment:
|
|
environment:
|
|
|
- MYSQL_ROOT_PASSWORD: mysql660
|
|
|
|
|
- ports:
|
|
|
|
|
- - '3306:3306'
|
|
|
|
|
- networks:
|
|
|
|
|
- - api
|
|
|
|
|
- - proxy_net
|
|
|
|
|
-
|
|
|
|
|
- web:
|
|
|
|
|
- container_name: nginx
|
|
|
|
|
- image: nginx:latest
|
|
|
|
|
- volumes:
|
|
|
|
|
- - ./apps/opentalent-platform:/var/www/html:rw,cached
|
|
|
|
|
- - ./docker/nginx/site.conf:/etc/nginx/conf.d/site.conf:cached
|
|
|
|
|
- ports:
|
|
|
|
|
- - '8080:80'
|
|
|
|
|
- depends_on:
|
|
|
|
|
- - php_fpm
|
|
|
|
|
- networks:
|
|
|
|
|
- - api
|
|
|
|
|
- - proxy_net
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${THUMBOR_VIRTUAL_HOST}
|
|
|
|
|
+ - LOADER=thumbor.loaders.file_loader
|
|
|
|
|
+ # volumes:
|
|
|
|
|
+ # - ./apps/opentalent-platform/web/files:/data/loader:cached
|
|
|
|
|
|
|
|
- php_fpm:
|
|
|
|
|
- container_name: back
|
|
|
|
|
|
|
+ php:
|
|
|
|
|
+ container_name: php
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
dockerfile: docker/php/Dockerfile
|
|
dockerfile: docker/php/Dockerfile
|
|
|
|
|
+ args:
|
|
|
|
|
+ - COMPOSER_HASH=${COMPOSER_HASH}
|
|
|
restart: always
|
|
restart: always
|
|
|
volumes:
|
|
volumes:
|
|
|
- - ./apps/.bash_history:/root/.bash_history:cached
|
|
|
|
|
# Version Symfony 2
|
|
# Version Symfony 2
|
|
|
- appdata:/var/www/html/app/cache/
|
|
- appdata:/var/www/html/app/cache/
|
|
|
- appdata:/var/www/html/app/logs/
|
|
- appdata:/var/www/html/app/logs/
|
|
|
# Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
|
|
# Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
|
|
|
- - ./apps/opentalent-platform:/var/www/html/:cached
|
|
|
|
|
|
|
+ - ./apps/opentalent-platform:/var/www/html:cached
|
|
|
# A l'inverse, les vendors seront surtout modifiés dans le container
|
|
# A l'inverse, les vendors seront surtout modifiés dans le container
|
|
|
- ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated
|
|
- ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated
|
|
|
depends_on:
|
|
depends_on:
|
|
|
- db
|
|
- db
|
|
|
- es
|
|
- es
|
|
|
- thumbor
|
|
- thumbor
|
|
|
- - blackfire
|
|
|
|
|
- networks:
|
|
|
|
|
- - api
|
|
|
|
|
- - proxy_net
|
|
|
|
|
|
|
+ - nginx-proxy
|
|
|
|
|
|
|
|
- blackfire:
|
|
|
|
|
- container_name: blackfire
|
|
|
|
|
- image: blackfire/blackfire
|
|
|
|
|
|
|
+ api:
|
|
|
|
|
+ container_name: api
|
|
|
|
|
+ image: nginx:alpine
|
|
|
|
|
+ volumes:
|
|
|
|
|
+ - ./apps/opentalent-platform/web:/var/www/html/web:rw,cached
|
|
|
|
|
+ - ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:cached
|
|
|
environment:
|
|
environment:
|
|
|
- # Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables.
|
|
|
|
|
- - 97e9ee98-0703-478e-a298-6320bd432393
|
|
|
|
|
- - 31c026c1ee937f59834cec4da0d019d946ce3e3dd02119ab621e59d1b52a20e9
|
|
|
|
|
- ports:
|
|
|
|
|
- - "8707:8707"
|
|
|
|
|
- networks:
|
|
|
|
|
- - api
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${API_VIRTUAL_HOST}
|
|
|
|
|
+ depends_on:
|
|
|
|
|
+ - php
|
|
|
|
|
|
|
|
- php_apache:
|
|
|
|
|
- container_name: adminassos
|
|
|
|
|
|
|
+ admin:
|
|
|
|
|
+ container_name: admin
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
- dockerfile: docker/adminassos/Dockerfile
|
|
|
|
|
- restart: always
|
|
|
|
|
|
|
+ dockerfile: docker/node/Dockerfile
|
|
|
volumes:
|
|
volumes:
|
|
|
- - ./apps/opentalent:/var/source/opentalent:rw,cached
|
|
|
|
|
- - ./apps/vendor:/var/source/vendor:rw,cached
|
|
|
|
|
- - ./apps/opentalent-config:/var/source/config:rw,cached
|
|
|
|
|
|
|
+ - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
|
|
|
|
|
+ tty: true
|
|
|
|
|
+ ports:
|
|
|
|
|
+ - 3000:3000
|
|
|
|
|
+ - 3001:3001
|
|
|
environment:
|
|
environment:
|
|
|
- - VIRTUAL_HOST=local.v59.opentalent.fr
|
|
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
- - api
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${ADMIN_VIRTUAL_HOST}
|
|
|
|
|
+ - VIRTUAL_PORT=${ADMIN_PORT}
|
|
|
|
|
+ - NODE_ENV=docker
|
|
|
depends_on:
|
|
depends_on:
|
|
|
- - db
|
|
|
|
|
|
|
+ - api
|
|
|
|
|
|
|
|
- typo3:
|
|
|
|
|
- container_name: typo3
|
|
|
|
|
|
|
+ portail:
|
|
|
|
|
+ container_name: portail
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
dockerfile: docker/typo3/Dockerfile
|
|
dockerfile: docker/typo3/Dockerfile
|
|
|
|
|
+ args:
|
|
|
|
|
+ - COMPOSER_HASH=${COMPOSER_HASH}
|
|
|
restart: always
|
|
restart: always
|
|
|
volumes:
|
|
volumes:
|
|
|
- ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php
|
|
- ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php
|
|
|
- ./apps/typo3/websites:/var/www/html/websites:cached
|
|
- ./apps/typo3/websites:/var/www/html/websites:cached
|
|
|
- ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
|
|
- ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
|
|
|
- - ./apps/typo3/themes:/var/www/html/theme_gallery:cached
|
|
|
|
|
|
|
+ - ./apps/typo3/themes/BlueSky:/var/www/html/fileadmin/theme_gallery/BlueSky:cached
|
|
|
- ./apps/typo3/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
|
|
- ./apps/typo3/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
|
|
|
- ./apps/typo3/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
|
|
- ./apps/typo3/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
|
|
|
- ./apps/typo3/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
|
|
- ./apps/typo3/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
|
|
@@ -166,40 +136,25 @@ services:
|
|
|
- ./apps/typo3/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
|
|
- ./apps/typo3/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
|
|
|
- ./apps/typo3/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
|
|
- ./apps/typo3/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
|
|
|
environment:
|
|
environment:
|
|
|
- - VIRTUAL_HOST=local.opentalent.fr
|
|
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
- - api
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${PORTAIL_VIRTUAL_HOST}
|
|
|
|
|
+ - HTTPS_METHOD=noredirect
|
|
|
depends_on:
|
|
depends_on:
|
|
|
- - db
|
|
|
|
|
- - nginx-proxy
|
|
|
|
|
- - php_fpm
|
|
|
|
|
|
|
+ - api
|
|
|
|
|
|
|
|
- phpmyadmin:
|
|
|
|
|
- container_name: phpMyAdmin
|
|
|
|
|
- image: phpmyadmin/phpmyadmin
|
|
|
|
|
|
|
+ adminassos:
|
|
|
|
|
+ container_name: adminassos
|
|
|
|
|
+ build:
|
|
|
|
|
+ context: .
|
|
|
|
|
+ dockerfile: docker/adminassos/Dockerfile
|
|
|
restart: always
|
|
restart: always
|
|
|
|
|
+ volumes:
|
|
|
|
|
+ - ./apps/opentalent:/var/source/opentalent:rw,cached
|
|
|
|
|
+ - ./apps/vendor:/var/source/vendor:rw,cached
|
|
|
|
|
+ - ./apps/opentalent-config:/var/source/config:rw,cached
|
|
|
environment:
|
|
environment:
|
|
|
- - VIRTUAL_HOST=local.phpmyadmin.opentalent.fr
|
|
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${V59_VIRTUAL_HOST}
|
|
|
depends_on:
|
|
depends_on:
|
|
|
- - db
|
|
|
|
|
-
|
|
|
|
|
- thumbor:
|
|
|
|
|
- container_name: thumbor
|
|
|
|
|
- image: minimalcompact/thumbor
|
|
|
|
|
- restart: always
|
|
|
|
|
- environment:
|
|
|
|
|
- - VIRTUAL_HOST=local.thumbor.opentalent.fr
|
|
|
|
|
- - LOADER=thumbor.loaders.file_loader
|
|
|
|
|
-# volumes:
|
|
|
|
|
-# - ./apps/opentalent-platform/web/files:/data/loader:cached
|
|
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
- api
|
|
- api
|
|
|
- depends_on:
|
|
|
|
|
- - nginx-proxy
|
|
|
|
|
|
|
|
|
|
mailcatcher:
|
|
mailcatcher:
|
|
|
container_name: mailcatcher
|
|
container_name: mailcatcher
|
|
@@ -207,18 +162,36 @@ services:
|
|
|
restart: always
|
|
restart: always
|
|
|
ports:
|
|
ports:
|
|
|
- '1025:1025'
|
|
- '1025:1025'
|
|
|
- - '1080:1080'
|
|
|
|
|
environment:
|
|
environment:
|
|
|
- - VIRTUAL_HOST=local.mailcatcher.opentalent.fr
|
|
|
|
|
- - VIRTUAL_PORT=1080
|
|
|
|
|
- networks:
|
|
|
|
|
- - proxy_net
|
|
|
|
|
- - api
|
|
|
|
|
|
|
+ - VIRTUAL_HOST=${MAILCATCHER_VIRTUAL_HOST}
|
|
|
|
|
+ - VIRTUAL_PORT=${MAILCATCHER_PORT}
|
|
|
depends_on:
|
|
depends_on:
|
|
|
- nginx-proxy
|
|
- nginx-proxy
|
|
|
|
|
|
|
|
-networks:
|
|
|
|
|
- proxy_net:
|
|
|
|
|
- driver: bridge
|
|
|
|
|
- api:
|
|
|
|
|
- driver: bridge
|
|
|
|
|
|
|
+ blackfire:
|
|
|
|
|
+ container_name: blackfire
|
|
|
|
|
+ image: blackfire/blackfire
|
|
|
|
|
+ environment:
|
|
|
|
|
+ # Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables.
|
|
|
|
|
+ - ${BLACK_FIRE_ID}
|
|
|
|
|
+ - ${BLACK_FIRE_TOKEN}
|
|
|
|
|
+ - VIRTUAL_HOST=${BLACK_FIRE_VIRTUAL_HOST}
|
|
|
|
|
+ - VIRTUAL_PORT=${BLACK_FIRE_PORT}
|
|
|
|
|
+ depends_on:
|
|
|
|
|
+ - php
|
|
|
|
|
+
|
|
|
|
|
+ metabase:
|
|
|
|
|
+ image: metabase/metabase
|
|
|
|
|
+ restart: always
|
|
|
|
|
+ environment:
|
|
|
|
|
+ - VIRTUAL_HOST=${METABASE_VIRTUAL_HOST}
|
|
|
|
|
+ - VIRTUAL_PORT=${METABASE_PORT}
|
|
|
|
|
+ depends_on:
|
|
|
|
|
+ - db
|
|
|
|
|
+
|
|
|
|
|
+volumes:
|
|
|
|
|
+ mysqldata: ~
|
|
|
|
|
+ elasticsearchdata: ~
|
|
|
|
|
+ certs: ~
|
|
|
|
|
+ # On rajoute un volume (de données non accessibles en dehors)
|
|
|
|
|
+ appdata: ~
|