Skip to content

Instantly share code, notes, and snippets.

@BlackScorp
Created December 20, 2020 10:24
Show Gist options
  • Save BlackScorp/1a44f63d1b96c54f05f9bb0e1248c5d1 to your computer and use it in GitHub Desktop.
Save BlackScorp/1a44f63d1b96c54f05f9bb0e1248c5d1 to your computer and use it in GitHub Desktop.
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
MYSQL_ROOT_PASSWORD=root
MYSQL_DATABASE=
MYSQL_USER=root
MYSQL_PASSWORD=root
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
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