1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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/eql.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:6
- volumes:
- - redis-data:/data
- networks:
- - redis
- ports:
- - "6379"
- php:
- build: ./Docker/php-7.4-fpm/
- user: ${USER_UID}:${USER_GID}
- volumes:
- - php-user-data:/home/${USER_UNAME}
- - "${PROJECT_ROOT}:/var/www/d9"
- - "${LOG_ROOT}/php:/var/log:rw"
- - "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini"
- working_dir: "/var/www/d9"
- networks:
- - database
- - redis
- - server
- depends_on:
- - mysql
- - redis
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8988:80
- networks:
- - database
- depends_on:
- - mysql
- environment:
- PMA_HOSTS: mysql
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8987:80
- working_dir: "/var/www"
- volumes:
- - "${PROJECT_ROOT}:/var/www/d9"
- - "${LOG_ROOT}:/var/log:rw"
- networks:
- - server
- depends_on:
- - php
- volumes:
- db-data:
- redis-data:
- php-user-data:
- networks:
- database:
- redis:
- server:
|