Created
December 20, 2020 10:24
-
-
Save BlackScorp/1a44f63d1b96c54f05f9bb0e1248c5d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.1" | |
volumes: | |
dbdata: | |
services: | |
php-apache: | |
build: docker | |
container_name: php-apache-server | |
working_dir: /src | |
ports: | |
- "80:80" | |
volumes: | |
- ./src:/var/www/html/ | |
- ./docker/php-ini-overrides.ini:/usr/local/etc/php/conf.d/php-ini-overrides.ini | |
mariadb: | |
image: mariadb:latest | |
container_name: mariadb | |
volumes: | |
- dbdata:/var/lib/mysql | |
ports: | |
- "3306:3306" | |
env_file: | |
- ./docker/db.env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYSQL_ROOT_PASSWORD=root | |
MYSQL_DATABASE= | |
MYSQL_USER=root | |
MYSQL_PASSWORD=root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.0-apache | |
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libpng-dev \ | |
&& docker-php-ext-install opcache pdo_mysql gd \ | |
&& pecl install xdebug-3.0.1 \ | |
&& docker-php-ext-enable xdebug opcache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdebug.mode=debug | |
xdebug.client_port=9000 | |
opcache.enable=On | |
opcache.enable_cli=On | |
opcache.jit_buffer_size=100M | |
opcache.jit=function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment