volumes: mysqldata: ~ elasticsearchdata: ~ # On rajoute un volume (de données non accessibles en dehors) appdata: ~ 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: context: . dockerfile: docker/node/Dockerfile volumes: - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached ports: - '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 - ./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 build: context: . dockerfile: docker/mariaDb/Dockerfile restart: always volumes: - ./mysqldata:/var/lib/mysql - ./apps/env:/env:cached 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 php_fpm: container_name: back build: context: . dockerfile: docker/php/Dockerfile restart: always volumes: - ./apps/.bash_history:/root/.bash_history:cached # 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 - blackfire networks: - api - proxy_net blackfire: container_name: blackfire image: blackfire/blackfire environment: # Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables. - 97e9ee98-0703-478e-a298-6320bd432393 - 31c026c1ee937f59834cec4da0d019d946ce3e3dd02119ab621e59d1b52a20e9 ports: - "8707:8707" networks: - api php_apache: container_name: adminassos build: context: . dockerfile: docker/adminassos/Dockerfile 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: - 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: - '1025:1025' - '1080:1080' environment: - VIRTUAL_HOST=local.mailcatcher.opentalent.fr - VIRTUAL_PORT=1080 networks: - proxy_net - api depends_on: - nginx-proxy networks: proxy_net: driver: bridge api: driver: bridge