|
|
@@ -6,6 +6,19 @@ volumes:
|
|
|
|
|
|
version: '3.3'
|
|
|
services:
|
|
|
+ nginx-proxy:
|
|
|
+ image: jwilder/nginx-proxy
|
|
|
+ container_name: proxy
|
|
|
+ ports:
|
|
|
+ - 80:80
|
|
|
+ - 443:443
|
|
|
+ volumes:
|
|
|
+ - /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
+ - /etc/nginx/vhost.d
|
|
|
+ - /usr/share/nginx/html
|
|
|
+ networks:
|
|
|
+ - proxy_net
|
|
|
+
|
|
|
front:
|
|
|
container_name: front
|
|
|
build:
|
|
|
@@ -17,24 +30,38 @@ services:
|
|
|
- '3000:3000'
|
|
|
- '3001:3001'
|
|
|
tty: true
|
|
|
+ environment:
|
|
|
+ - VIRTUAL_HOST=local.admin.opentalent.fr
|
|
|
+ - VIRTUAL_PORT=3000
|
|
|
+ networks:
|
|
|
+ - proxy_net
|
|
|
+ depends_on:
|
|
|
+ - nginx-proxy
|
|
|
|
|
|
es:
|
|
|
container_name: es
|
|
|
image: elasticsearch:2.4.6
|
|
|
restart: always
|
|
|
volumes:
|
|
|
- - ./elasticsearchdata:/usr/share/elasticsearch/data:cached
|
|
|
+ - ./elasticsearchdata:/usr/share/elasticsearch/data
|
|
|
- ./docker/elasticsearch/conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:cached
|
|
|
environment:
|
|
|
- cluster.name=docker-cluster
|
|
|
- bootstrap.memory_lock=true
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
+ - VIRTUAL_HOST=local.elasticsearch.opentalent.fr
|
|
|
+ - VIRTUAL_PORT=9200
|
|
|
ulimits:
|
|
|
memlock:
|
|
|
soft: -1
|
|
|
hard: -1
|
|
|
ports:
|
|
|
- '9200:9200'
|
|
|
+ networks:
|
|
|
+ - proxy_net
|
|
|
+ - api
|
|
|
+ depends_on:
|
|
|
+ - nginx-proxy
|
|
|
|
|
|
db:
|
|
|
container_name: mariaDb
|
|
|
@@ -43,12 +70,15 @@ services:
|
|
|
dockerfile: docker/mariaDb/Dockerfile
|
|
|
restart: always
|
|
|
volumes:
|
|
|
- - ./mysqldata:/var/lib/mysql:cached
|
|
|
+ - ./mysqldata:/var/lib/mysql
|
|
|
- ./apps/env:/env:cached
|
|
|
environment:
|
|
|
MYSQL_ROOT_PASSWORD: mysql660
|
|
|
ports:
|
|
|
- '3306:3306'
|
|
|
+ networks:
|
|
|
+ - api
|
|
|
+ - proxy_net
|
|
|
|
|
|
web:
|
|
|
container_name: nginx
|
|
|
@@ -60,6 +90,9 @@ services:
|
|
|
- '8080:80'
|
|
|
depends_on:
|
|
|
- php_fpm
|
|
|
+ networks:
|
|
|
+ - api
|
|
|
+ - proxy_net
|
|
|
|
|
|
php_fpm:
|
|
|
container_name: back
|
|
|
@@ -69,7 +102,6 @@ services:
|
|
|
restart: always
|
|
|
volumes:
|
|
|
- ./apps/.bash_history:/root/.bash_history:cached
|
|
|
- - ./apps/opentalent-platform:/var/www/html:rw,cached
|
|
|
# Version Symfony 2
|
|
|
- appdata:/var/www/html/app/cache/
|
|
|
- appdata:/var/www/html/app/logs/
|
|
|
@@ -80,6 +112,10 @@ services:
|
|
|
depends_on:
|
|
|
- db
|
|
|
- es
|
|
|
+ - thumbor
|
|
|
+ networks:
|
|
|
+ - api
|
|
|
+ - proxy_net
|
|
|
|
|
|
php_apache:
|
|
|
container_name: adminassos
|
|
|
@@ -91,16 +127,85 @@ services:
|
|
|
- ./apps/opentalent:/var/source/opentalent:rw,cached
|
|
|
- ./apps/vendor:/var/source/vendor:rw,cached
|
|
|
- ./apps/opentalent-config:/var/source/config:rw,cached
|
|
|
- ports:
|
|
|
- - '80:80'
|
|
|
+ environment:
|
|
|
+ - VIRTUAL_HOST=local.v59.opentalent.fr
|
|
|
+ networks:
|
|
|
+ - proxy_net
|
|
|
+ - api
|
|
|
+ depends_on:
|
|
|
+ - db
|
|
|
+
|
|
|
+ typo3:
|
|
|
+ container_name: typo3
|
|
|
+ build:
|
|
|
+ context: .
|
|
|
+ dockerfile: docker/typo3/Dockerfile
|
|
|
+ restart: always
|
|
|
+ volumes:
|
|
|
+ - ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php
|
|
|
+ - ./apps/typo3/websites:/var/www/html/websites:cached
|
|
|
+ - ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
|
|
|
+ - ./apps/typo3/themes:/var/www/html/theme_gallery: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_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
|
|
|
+ - ./apps/typo3/typo3extension/theme_gallery:/var/www/html/typo3conf/ext/theme_gallery:cached
|
|
|
+ - ./apps/typo3/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
|
|
|
+ - ./apps/typo3/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
|
|
|
+ environment:
|
|
|
+ - VIRTUAL_HOST=local.opentalent.fr
|
|
|
+ networks:
|
|
|
+ - proxy_net
|
|
|
+ - api
|
|
|
depends_on:
|
|
|
- db
|
|
|
+ - nginx-proxy
|
|
|
+ - php_fpm
|
|
|
|
|
|
phpmyadmin:
|
|
|
container_name: phpMyAdmin
|
|
|
image: phpmyadmin/phpmyadmin
|
|
|
restart: always
|
|
|
+ environment:
|
|
|
+ - VIRTUAL_HOST=local.phpmyadmin.opentalent.fr
|
|
|
+ networks:
|
|
|
+ - proxy_net
|
|
|
+ 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
|
|
|
+ depends_on:
|
|
|
+ - nginx-proxy
|
|
|
+
|
|
|
+ mailcatcher:
|
|
|
+ container_name: mailcatcher
|
|
|
+ image: sj26/mailcatcher
|
|
|
+ restart: always
|
|
|
ports:
|
|
|
- - '8081:80'
|
|
|
+ - '1025:1025'
|
|
|
+ - '1080:1080'
|
|
|
+ environment:
|
|
|
+ - VIRTUAL_HOST=local.mailcatcher.opentalent.fr
|
|
|
+ - VIRTUAL_PORT=1080
|
|
|
+ networks:
|
|
|
+ - proxy_net
|
|
|
+ - api
|
|
|
depends_on:
|
|
|
- - db
|
|
|
+ - nginx-proxy
|
|
|
+
|
|
|
+networks:
|
|
|
+ proxy_net:
|
|
|
+ driver: bridge
|
|
|
+ api:
|
|
|
+ driver: bridge
|