123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- version: "3.5"
- services:
- mysql:
- image: mariadb:latest
- volumes:
- - db-data:/var/lib/mysql
- - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- - ./Docker/mysql/bashrc:/root/.bashrc:ro
- - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/materio_d8.sql"
- networks:
- - database
- hostname: mysql
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_NAME}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- mysql-legacy:
- image: mariadb:latest
- volumes:
- - db-data-legacy:/var/lib/mysql
- - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- - ./Docker/mysql/bashrc:/root/.bashrc:ro
- - "${DB_IMPORTE_FILE_D7}:/docker-entrypoint-initdb.d/materio_d7.sql"
- networks:
- - database
- hostname: mysql-legacy
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_LEGACY_NAME}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- redis:
- image: redis:4
- volumes:
- - redis-data:/data
- networks:
- - redis
- ports:
- - "6389"
- redis-legacy:
- image: redis:3
- volumes:
- - redis-legacy-data:/data
- networks:
- - redis
- ports:
- - "6388"
- solr-new:
- build: ./Docker/solr/
- environment:
- - SOLR_HOME=/opt/solr/server/solr
- volumes:
- - "${SOLR_CORES}:/opt/solr/server/solr"
- # - solr-cores:/opt/solr/server/solr
- networks:
- - solr
- ports:
- - 8985:8983
- solr-legacy:
- build: ./Docker/solr-legacy/
- volumes:
- - solr-cores-legacy:/opt/solr/server/solr
- networks:
- - solr
- ports:
- - 8983:8983
- php:
- build: ./Docker/php/
- expose:
- - 9000
- volumes:
- - php-root-data:/root
- - "${PROJECT_ROOT}:/var/www/html/d8.materio.com/public_html"
- - "${LEGACY_ROOT}:/var/www/html/d7.materio.com/public_html"
- - "${LOG_ROOT}/php:/var/log:rw"
- working_dir: "/var/www/html/d8.materio.com/public_html"
- networks:
- - database
- - redis
- - server
- - solr
- depends_on:
- - mysql
- - mysql-legacy
- - redis
- - solr-new
- php-legacy:
- build: ./Docker/php-legacy/
- expose:
- - 9000
- volumes:
- - php-legacy-root-data:/root
- - "${LEGACY_ROOT}:/var/www/html"
- - "${LOG_ROOT}/php-legacy:/var/log:rw"
- working_dir: "/var/www/html"
- networks:
- - database
- - redis
- - server
- - solr
- depends_on:
- - mysql-legacy
- - redis-legacy
- - solr-legacy
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8891:80
- networks:
- - database
- depends_on:
- - mysql
- - mysql-legacy
- environment:
- PMA_HOSTS: mysql,mysql-legacy
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8890:80
- volumes:
- - "${PROJECT_ROOT}:/var/www/html/d8.materio.com/public_html"
- - "${LEGACY_ROOT}:/var/www/html/d7.materio.com/public_html"
- - "${LOG_ROOT}:/var/log:rw"
- working_dir: "/var/www/html/d8.materio.com/public_html"
- networks:
- - server
- - solr
- depends_on:
- - php
- nginx-legacy:
- build: ./Docker/nginx-legacy/
- ports:
- - 8880:80
- volumes:
- - "${LEGACY_ROOT}:/var/www/html"
- - "${LOG_ROOT}:/var/log:rw"
- networks:
- - server
- - solr
- depends_on:
- - php-legacy
- volumes:
- php-root-data:
- php-legacy-root-data:
- db-data:
- db-data-legacy:
- redis-data:
- redis-legacy-data:
- solr-cores-legacy:
- solr-cores:
- networks:
- database:
- redis:
- server:
- solr:
|