| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417 |
- version: '3.3'
- services:
- nginx-proxy:
- hostname: nginx-proxy
- container_name: nginx-proxy
- build:
- context: .
- dockerfile: docker/nginx-proxy/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:
- hostname: 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}
- nginx:
- hostname: nginx
- container_name: nginx
- image: nginx:alpine
- networks:
- default:
- aliases:
- - docker.nginx.opentalent.fr
- volumes:
- - ./apps/opentalent-platform/web:/var/www/html/web:cached
- - ./docker/nginx/site_php70.conf:/etc/nginx/conf.d/default.conf:cached
- environment:
- - VIRTUAL_HOST=${API_VIRTUAL_HOST}
- depends_on:
- - php70
- php70:
- hostname: api
- container_name: php70
- build:
- context: .
- dockerfile: docker/php/Dockerfile
- args:
- - COMPOSER_HASH=${COMPOSER_HASH}
- - OS=${OS}
- restart: always
- environment:
- - PHP_IDE_CONFIG=serverName=api
- - HTTPS_METHOD=noredirect
- volumes:
- # Version Symfony 2
- - appdata:/var/www/html/app/cache/
- - appdata:/var/www/html/app/logs/
- # ATTENTION : LES VENDROS SONT DELEGUES AU CONTAINER : AUCUNE MODIF FAITES SUR LA MACHINE HOST NE SERA REPLIQUE SUR
- # LE CONTAINER ET VICE ET VERSA, mettre en com la ligne pour modifier et décommenter ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated.
- # - appVendor:/var/www/html/vendor/
- - ./useruploaddata:/var/www/html/fileadmin/user_upload:cached
- # Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
- - ./apps/opentalent-platform:/var/www/html:cached
- # À 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
- nginx_new:
- hostname: nginx_new
- container_name: nginx_new
- image: nginx:alpine
- volumes:
- - ./apps/ap2i/public:/var/www/html/public:cached
- - ./docker/nginx/site_ap2i.conf:/etc/nginx/conf.d/default.conf:cached
- environment:
- - VIRTUAL_HOST=${AP2I_VIRTUAL_HOST}
- depends_on:
- - ap2i
- ap2i:
- hostname: ap2i
- container_name: ap2i
- build:
- context: .
- dockerfile: docker/ap2i/Dockerfile
- args:
- - COMPOSER_HASH=${COMPOSER_HASH}
- - OS=${OS}
- restart: always
- environment:
- - PHP_IDE_CONFIG=serverName=ap2i
- - HTTPS_METHOD=noredirect
- volumes:
- # Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
- - ./apps/ap2i:/var/www/html:cached
- # Version Symfony 5
- - appdata5:/var/www/html/var/cache/
- - appdata5:/var/www/html/var/log/
- - appdata5:/var/www/html/var/files/
- # ATTENTION : LES VENDORS SONT DELEGUES AU CONTAINER : AUCUNE MODIF FAITES SUR LA MACHINE HOST NE SERA REPLIQUE SUR
- # LE CONTAINER ET VICE ET VERSA, mettre en com la ligne pour modifier et décommenter ./apps/api/New/vendor:/var/www/html/vendor:delegated.
- # - appVendor5:/var/www/html/vendor/
- # A l'inverse, les vendors seront surtout modifiés dans le container
- - ./apps/ap2i/vendor:/var/www/html/vendor:delegated
- depends_on:
- - db
- - es
- - thumbor
- - nginx-proxy
- mercure:
- hostname: mercure
- container_name: mercure
- build:
- context: .
- dockerfile: docker/mercure/Dockerfile
- restart: unless-stopped
- environment:
- VIRTUAL_HOST: ${MERCURE_VIRTUAL_HOST}
- SERVER_NAME: ${MERCURE_VIRTUAL_HOST}
- MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_PUBLISHER_JWT_KEY}
- MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_SUBSCRIBER_JWT_KEY}
- volumes:
- - mercure_data:/data
- - mercure_config:/config
- - ./docker/mercure/caddy:/etc/caddy:cached
- python39:
- hostname: python39
- container_name: python39
- build:
- context: .
- dockerfile: docker/python39/Dockerfile
- args:
- - OS=${OS}
- restart: always
- volumes:
- - ./apps/python-scripts:/root/scripts:cached
- depends_on:
- - db
- - nginx-proxy
- admin:
- hostname: 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:
- - nginx
- app:
- hostname: app
- container_name: app
- build:
- context: .
- dockerfile: docker/app/Dockerfile
- volumes:
- - ./apps/app:/home/workspace:rw,cached
- - ./apps/app-doc:/home/app-doc:rw,cached
- tty: true
- ports:
- - 3002:3002
- - 3003:3003
- environment:
- - VIRTUAL_HOST=${APP_VIRTUAL_HOST}
- - VIRTUAL_PORT=${APP_PORT}
- - NODE_ENV=docker
- - HTTPS_METHOD=noredirect
- depends_on:
- - nginx_new
- frames:
- hostname: frames
- container_name: frames
- build:
- context: .
- dockerfile: docker/frames/Dockerfile
- volumes:
- - ./apps/frames:/home/workspace:rw,cached
- tty: true
- ports:
- - 3004:3004
- - 3005:3005
- environment:
- - VIRTUAL_HOST=${FRAMES_VIRTUAL_HOST}
- - VIRTUAL_PORT=${FRAMES_PORT}
- - NODE_ENV=docker
- - HTTPS_METHOD=noredirect
- depends_on:
- - nginx_new
- portail:
- hostname: portail
- container_name: portail
- build:
- context: .
- dockerfile: docker/portail/Dockerfile
- args:
- - COMPOSER_HASH=${COMPOSER_HASH}
- restart: always
- volumes:
- - ./docker/portail/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php:cached
- - ./apps/portail/websites:/var/www/html/websites:cached
- - ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
- - ./apps/portail/themes/BlueSky:/var/www/html/fileadmin/theme_gallery/BlueSky:cached
- - ./apps/portail/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
- - ./apps/portail/typo3extension/ot_migration_typo8:/var/www/html/typo3conf/ext/ot_migration_typo8:cached
- - ./apps/portail/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
- - ./apps/portail/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
- - ./apps/portail/typo3extension/typo3_api:/var/www/html/typo3conf/ext/typo3_api:cached
- - ./apps/portail/typo3extension/theme_gallery:/var/www/html/typo3conf/ext/theme_gallery:cached
- - ./apps/portail/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
- - ./apps/portail/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
- environment:
- - VIRTUAL_HOST=${PORTAIL_VIRTUAL_HOST}
- - HTTPS_METHOD=noredirect
- depends_on:
- - nginx
- typo3:
- hostname: typo3
- container_name: typo3
- build:
- context: .
- dockerfile: docker/typo3/Dockerfile
- args:
- - COMPOSER_HASH=${COMPOSER_HASH}
- restart: always
- networks:
- default:
- aliases:
- - docker.sub.opentalent.fr
- - docker.sub.customdomain.fr
- volumes:
- - ./apps/ot_typo3/ot_admin:/var/opentalent/git/ot_typo3/ot_admin:cached
- - ./apps/ot_typo3/ot_connect:/var/opentalent/git/ot_typo3/ot_connect:cached
- - ./apps/ot_typo3/ot_core:/var/opentalent/git/ot_typo3/ot_core:cached
- - ./apps/ot_typo3/ot_optimizer:/var/opentalent/git/ot_typo3/ot_optimizer:cached
- - ./apps/ot_typo3/ot_stats:/var/opentalent/git/ot_typo3/ot_stats:cached
- - ./apps/ot_typo3/ot_templating:/var/opentalent/git/ot_typo3/ot_templating:cached
- - ./apps/ot_typo3/docker/typo3:/var/www/typo3:cached
- environment:
- - VIRTUAL_HOST=${TYPO3_VIRTUAL_HOST}
- - HTTPS_METHOD=noredirect
- - PHP_IDE_CONFIG=servername=typo3
- depends_on:
- - nginx
- adminassos:
- hostname: v59
- 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:
- - nginx
- # metabase:
- # hostname: 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
- es:
- hostname: 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:
- hostname: 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
- phpmyadmin:
- hostname: phpmyadmin
- container_name: phpmyadmin
- image: phpmyadmin/phpmyadmin
- environment:
- - VIRTUAL_HOST=${PHPMYADMIN_VIRTUAL_HOST}
- restart: always
- depends_on:
- - db
- memcached:
- hostname: memcached
- container_name: memcached
- image: memcached
- restart: always
- mailcatcher:
- hostname: mailcatcher
- container_name: mailcatcher
- image: sj26/mailcatcher
- restart: always
- ports:
- - '1025:1025'
- environment:
- - VIRTUAL_HOST=${MAILCATCHER_VIRTUAL_HOST}
- - VIRTUAL_PORT=${MAILCATCHER_PORT}
- - HTTPS_METHOD=noredirect
- depends_on:
- - nginx-proxy
- # blackfire:
- # hostname: blackfire
- # container_name: blackfire
- # image: blackfire/blackfire
- # environment:
- # - BLACKFIRE_LOG_LEVEL=4
- # - BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID}
- # - BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN}
- # - BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
- # - BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
- # - VIRTUAL_HOST=${BLACK_FIRE_VIRTUAL_HOST}
- # - VIRTUAL_PORT=${BLACK_FIRE_PORT}
- # depends_on:
- # - php70
- # - ap2i
- phpdoc:
- hostname: phpdoc
- container_name: phpdoc
- image: nginx:alpine
- volumes:
- - ./apps/api-doc:/usr/share/nginx/html
- environment:
- - VIRTUAL_HOST=${PHPDOC_VIRTUAL_HOST}
- #docker run --rm -v /opt/opentalent/apps/api/src/:/data -v /opt/opentalent/apps/api-doc:/output phpdoc/phpdoc -d /data -t /output
- jsdoc:
- hostname: jsdoc
- container_name: jsdoc
- image: nginx:alpine
- volumes:
- - ./apps/admin-doc:/usr/share/nginx/html
- environment:
- - VIRTUAL_HOST=${JSDOC_VIRTUAL_HOST}
- volumes:
- mysqldata: ~
- elasticsearchdata: ~
- # metabase-data: ~
- # On rajoute un volume (de données non accessibles en dehors)
- appdata: ~
- appVendor: ~
- appdata5: ~
- appVendor5: ~
- adminBower: ~
- adminNode: ~
- mercure_data:
- mercure_config:
|