diff --git a/.docker-config/php/Dockerfile b/.docker-config/php/Dockerfile deleted file mode 100644 index 394d3e4..0000000 --- a/.docker-config/php/Dockerfile +++ /dev/null @@ -1,43 +0,0 @@ -FROM php:8.1-fpm - -RUN apt-get update && apt-get install -y \ - libfreetype6-dev libjpeg62-turbo-dev \ - libmcrypt-dev libpng-dev libbz2-dev \ - libssl-dev autoconf libzip-dev \ - ca-certificates curl g++ libicu-dev \ - libonig-dev \ - && apt-get install -y --no-install-recommends libmagickwand-dev \ - && rm -rf /var/lib/apt/lists/* - -RUN pecl install xdebug && \ - docker-php-ext-enable xdebug - -COPY ./.docker-config/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini - -COPY ./.docker-config/php/error_reporting.ini /usr/local/etc/php/conf.d/error_reporting.ini - -RUN docker-php-ext-install \ - bcmath bz2 exif \ - ftp gd gettext mbstring opcache \ - shmop sockets sysvmsg sysvsem sysvshm \ - zip iconv pdo_mysql intl soap - -RUN docker-php-ext-configure gd \ - --with-freetype \ - --with-jpeg - -RUN pecl install imagick && \ - docker-php-ext-enable imagick - -RUN curl -sS https://getcomposer.org/installer | php -- \ - --install-dir=/usr/local/bin/ --filename=composer - -COPY ./.docker-config/php/docker-php-settings.ini /usr/local/etc/php/conf.d/docker-php-settings.ini - -RUN chown -R www-data:www-data /var/www - -USER www-data - -RUN mkdir -p /var/www/html/storage/runtime/mutex && \ - mkdir -p /var/www/html/storage/logs && \ - mkdir -p /var/www/html/vendor diff --git a/.docker-config/php/docker-php-settings.ini b/.docker-config/php/docker-php-settings.ini deleted file mode 100644 index 4f269c5..0000000 --- a/.docker-config/php/docker-php-settings.ini +++ /dev/null @@ -1,5 +0,0 @@ -upload_max_filesize = 10M -post_max_size = 10M -max_execution_time = 300 -memory_limit = 256M -max_input_vars = 4000 diff --git a/.docker-config/php/entrypoint.sh b/.docker-config/php/entrypoint.sh deleted file mode 100755 index 07eafc5..0000000 --- a/.docker-config/php/entrypoint.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -e - -composer install -q - -exec "$@" diff --git a/.docker-config/php/error_reporting.ini b/.docker-config/php/error_reporting.ini deleted file mode 100644 index 7e566f4..0000000 --- a/.docker-config/php/error_reporting.ini +++ /dev/null @@ -1 +0,0 @@ -error_reporting=E_ALL diff --git a/.docker-config/php/xdebug.ini b/.docker-config/php/xdebug.ini deleted file mode 100644 index 784d982..0000000 --- a/.docker-config/php/xdebug.ini +++ /dev/null @@ -1,4 +0,0 @@ -[xdebug] -xdebug.mode=off -xdebug.client_host=host.docker.internal -xdebug.start_with_request=yes diff --git a/bin/codecept b/bin/codecept deleted file mode 100755 index a8d6e34..0000000 --- a/bin/codecept +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -docker-compose exec php vendor/bin/codecept "$@" diff --git a/bin/composer b/bin/composer deleted file mode 100755 index 5eace24..0000000 --- a/bin/composer +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -docker-compose exec php composer "$@" diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 4f576cf..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,43 +0,0 @@ ---- -version: '3' - -services: - php: - image: craft_base_php - build: - context: . - dockerfile: ./.docker-config/php/Dockerfile - entrypoint: ./.docker-config/php/entrypoint.sh - command: [ - "docker-php-entrypoint", - "php-fpm" - ] - expose: - - 9000 - volumes: - - .:/var/www/html:cached - - ./vendor:/var/www/html/vendor:delegated - - ./storage/logs:/var/www/html/storage/logs:delegated - environment: - - ENVIRONMENT=dev - - DB_DSN=mysql:host=mysql;port=3306;dbname=craft_base_test - - DB_USER=craft_base - - DB_PASSWORD=craft_base - - DB_TABLE_PREFIX= - - CRAFT_SECURITY_KEY=asdfasdfasdfasdfasdf - - XDEBUG_MODE - - mysql: - image: mysql:5.7.29 - volumes: - - db:/var/lib/mysql - ports: - - 3306:3306 - environment: - MYSQL_ROOT_PASSWORD: root - MYSQL_USER: craft_base - MYSQL_PASSWORD: craft_base - MYSQL_DATABASE: craft_base_test - -volumes: - db: