1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- 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
- - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/edlp_d8.sql"
- # - "${DB_IMPORTE_FILE_D6}:/docker-entrypoint-initdb.d/edlp_d6.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-legacy-data:/var/lib/mysql
- # # - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/edlp_d8.sql"
- # - "${DB_IMPORTE_FILE_D6}:/docker-entrypoint-initdb.d/edlp_d6.sql"
- # networks:
- # - database
- # hostname: mysql-legacy
- # environment:
- # MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- # MYSQL_DATABASE: "${DB_NAME}"
- # MYSQL_USER: "${DB_USERNAME}"
- # MYSQL_PASSWORD: "${DB_PASSWORD}"
- redis:
- image: redis:4
- volumes:
- - redis-data:/data
- networks:
- - redis
- ports:
- - "6379"
- php:
- build: ./Docker/php/
- expose:
- - 9000
- volumes:
- - php-root-data:/root
- - ./Docker/php/phpSettings.conf:/usr/local/etc/php-fpm.d/zzz-phpSettings.conf
- - "${LOG_ROOT}:/var/log:rw"
- - "${PROJECT_ROOT}:/var/www/html"
- - "${LEGACY_ROOT}:/var/www/drupal6"
- networks:
- - database
- - redis
- - server
- depends_on:
- - mysql
- - redis
- # - mysql-legacy
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8881:80
- networks:
- - database
- depends_on:
- - mysql
- environment:
- PMA_HOST: mysql
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8880:80
- volumes:
- - "${PROJECT_ROOT}:/var/www/html"
- - "${LOG_ROOT}:/var/log:rw"
- networks:
- - server
- depends_on:
- - php
- volumes:
- php-root-data:
- db-data:
- redis-data:
- networks:
- database:
- redis:
- server:
|