volumes: mysqldata: ~ elasticsearchdata: ~ # On rajoute un volume (de données non accessibles en dehors) appdata: ~ version: '3.3' services: 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 es: container_name: es image: elasticsearch:2.4.6 restart: always volumes: - ./elasticsearchdata:/usr/share/elasticsearch/data:cached - ./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" ulimits: memlock: soft: -1 hard: -1 ports: - '9200:9200' db: container_name: mariaDb build: context: . dockerfile: docker/mariaDb/Dockerfile restart: always volumes: - ./mysqldata:/var/lib/mysql:cached - ./apps/env:/env:cached environment: MYSQL_ROOT_PASSWORD: mysql660 ports: - '3306:3306' 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 php_fpm: container_name: back build: context: . dockerfile: docker/php/Dockerfile 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/ # 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 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 ports: - '80:80' depends_on: - db phpmyadmin: container_name: phpMyAdmin image: phpmyadmin/phpmyadmin restart: always ports: - '8081:80' depends_on: - db