| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- 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
- php:
- container_name: php
- 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
- # adminassos:
- # 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
- # -
- phpmyadmin:
- container_name: phpMyAdmin
- image: phpmyadmin/phpmyadmin
- restart: always
- ports:
- - '8081:80'
- depends_on:
- - db
|