123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- 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}:/docker-entrypoint-initdb.d/db.sql"
- networks:
- - database
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_NAME}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- redis:
- image: redis:3
- volumes:
- - redis-data:/data
- networks:
- - redis
- ports:
- - "6379"
- php:
- build: ./Docker/php/
- expose:
- - 9000
- volumes:
- - php-root-data:/root
- - "${PROJECT_ROOT}:/var/www/html"
- networks:
- - database
- - server
- - redis
- depends_on:
- - mysql
- 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:
- db-data:
- redis-data:
- php-root-data:
- networks:
- database:
- redis:
- server:
|