| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- version: '3.3'
- services:
- nginx-proxy:
- container_name: nginx-proxy
- build:
- context: .
- dockerfile: docker/nginx/Dockerfile
- restart: always
- ports:
- - 80:80
- - 443:443
- volumes:
- - /var/run/docker.sock:/tmp/docker.sock:ro
- - /etc/nginx/vhost.d
- - /usr/share/nginx/html
- db:
- container_name: mariaDb
- build:
- context: .
- dockerfile: docker/mariaDb/Dockerfile
- args:
- - COMPOSER_HASH=${COMPOSER_HASH}
- restart: always
- ports:
- - 3306:3306
- volumes:
- - ./apps/opentalent-platform/migration:/usr/src:cached
- - ./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:
- - VIRTUAL_HOST=${PHPMYADMIN_VIRTUAL_HOST}
- restart: always
- depends_on:
- - db
- es:
- container_name: es
- image: elasticsearch:2.4.6-alpine
- restart: always
- volumes:
- - ./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=${ES_VIRTUAL_HOST}
- - VIRTUAL_PORT=${ES_PORT}
- ulimits:
- memlock:
- soft: -1
- hard: -1
- thumbor:
- container_name: thumbor
- image: minimalcompact/thumbor
- restart: always
- environment:
- - VIRTUAL_HOST=${THUMBOR_VIRTUAL_HOST}
- - LOADER=thumbor.loaders.file_loader
- # volumes:
- # - ./apps/opentalent-platform/web/files:/data/loader:cached
- php:
- container_name: php
- build:
- context: .
- dockerfile: docker/php/Dockerfile
- args:
- - COMPOSER_HASH=${COMPOSER_HASH}
- - OS=${OS}
- restart: always
- environment:
- - PHP_IDE_CONFIG=serverName=api
- volumes:
- # Version Symfony 2
- - appdata:/var/www/html/app/cache/
- - appdata:/var/www/html/app/logs/
- # Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
- - ./apps/opentalent-platform:/var/www/html:cached
- # A l'inverse, les vendors seront surtout modifiés dans le container
- - ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated
- depends_on:
- - db
- - es
- - thumbor
- - nginx-proxy
- api:
- container_name: api
- image: nginx:alpine
- volumes:
- - ./apps/opentalent-platform/web:/var/www/html/web:cached
- - ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:cached
- environment:
- - VIRTUAL_HOST=${API_VIRTUAL_HOST}
- - HTTPS_METHOD=noredirect
- depends_on:
- - php
- admin:
- container_name: admin
- build:
- context: .
- dockerfile: docker/node/Dockerfile
- volumes:
- - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
- tty: true
- ports:
- - 3000:3000
- - 3001:3001
- environment:
- - VIRTUAL_HOST=${ADMIN_VIRTUAL_HOST}
- - VIRTUAL_PORT=${ADMIN_PORT}
- - NODE_ENV=docker
- - HTTPS_METHOD=noredirect
- depends_on:
- - api
- portail:
- container_name: portail
- build:
- context: .
- dockerfile: docker/typo3/Dockerfile
- args:
- - COMPOSER_HASH=${COMPOSER_HASH}
- restart: always
- volumes:
- - ./docker/typo3/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php:cached
- - ./apps/typo3/websites:/var/www/html/websites:cached
- - ./apps/opentalent/templates:/var/www/html/fileadmin/templates: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_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=${PORTAIL_VIRTUAL_HOST}
- - HTTPS_METHOD=noredirect
- depends_on:
- - api
- adminassos:
- container_name: adminassos
- build:
- context: .
- dockerfile: docker/adminassos/Dockerfile
- args:
- - OS=${OS}
- restart: always
- volumes:
- - ./apps/opentalent:/var/source/opentalent:cached
- - ./useruploaddata:/var/www/opentalent/fileadmin/user_upload:cached
- - ./apps/vendor:/var/source/vendor:delegated
- - ./apps/opentalent-config:/var/source/config:cached
- environment:
- - VIRTUAL_HOST=${V59_VIRTUAL_HOST}
- depends_on:
- - api
- mailcatcher:
- container_name: mailcatcher
- image: sj26/mailcatcher
- restart: always
- ports:
- - '1025:1025'
- environment:
- - VIRTUAL_HOST=${MAILCATCHER_VIRTUAL_HOST}
- - VIRTUAL_PORT=${MAILCATCHER_PORT}
- depends_on:
- - nginx-proxy
- 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
- volumes:
- - ./metabase-data:/metabase-data
- environment:
- - MB_DB_FILE=./metabase-data/metabase.db
- - VIRTUAL_HOST=${METABASE_VIRTUAL_HOST}
- - VIRTUAL_PORT=${METABASE_PORT}
- depends_on:
- - db
- volumes:
- mysqldata: ~
- elasticsearchdata: ~
- metabase-data: ~
- # On rajoute un volume (de données non accessibles en dehors)
- appdata: ~
|