123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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}:/docker-entrypoint-initdb.d/drupal.sql"
- networks:
- - database
- hostname: mysql
- 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:
- - "6389"
- php:
- build: ./Docker/php/
- expose:
- - 9000
- volumes:
- - php-root-data:/root
- - "${PROJECT_ROOT}:/var/www/html"
- - "${LOG_ROOT}/php:/var/log:rw"
- working_dir: "/var/www/html"
- networks:
- - database
- - redis
- - server
- depends_on:
- - mysql
- - redis
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8891:80
- networks:
- - database
- depends_on:
- - mysql
- environment:
- PMA_HOSTS: mysql
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8890:80
- volumes:
- - "${PROJECT_ROOT}:/var/www/html/"
- - "${LOG_ROOT}:/var/log:rw"
- working_dir: "/var/www/html/web"
- networks:
- - server
- depends_on:
- - php
- volumes:
- php-root-data:
- db-data:
- redis-data:
- networks:
- database:
- redis:
- server:
|