├── CHANGELOG.md ├── Dockerfile ├── README.md ├── typo3.conf └── typo3.ini /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | #### v1.2.2 `May 20, 2019` 3 | 4 | - **[BUGFIX]** remove unneeded www-data user permission fix ([54179f3](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/54179f3)) 5 | - **[TASK]** add docker healthcheck and www-data user permission fix ([fdfa9a0](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/fdfa9a0)) 6 | 7 | *** 8 | 9 | #### v1.2.0 `February 7, 2019` 10 | 11 | - **[DOC]** update documentation ([1bb9142](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/1bb9142)) 12 | - **[TASK]** update PHP/apache/vhost config for TYPO3 v9 and t3kit9 ([a25652a](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/a25652a)) 13 | 14 | *** 15 | 16 | #### v1.1.0 `November 20, 2018` 17 | - **[TASK]** add more VirtualHosts with TYPO3_CONTEXT ([53058b9](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/53058b9)) 18 | - **[TASK]** remove nodejs dependency ([38084b6](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/38084b6)) 19 | 20 | *** 21 | 22 | #### v1.0.0 `November 15, 2018` 23 | - **[TASK]** adapt docker image for TYPO3 v9 ([219f191](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/219f191)) 24 | 25 | *** 26 | 27 | #### v0.1.0 `March 8, 2018` 28 | - **[TASK]** remove php-xdebug, update image ([49d8dc5](https://github.com/t3kit/ubuntu18.04-php7.2-apache/commit/49d8dc5)) 29 | 30 | *** 31 | #### v0.0.1 `February 19, 2018` 32 | 33 | *** 34 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | 5 | RUN apt-get update && apt-get install -yq --no-install-recommends \ 6 | apt-utils \ 7 | curl \ 8 | # Install git 9 | git \ 10 | # Install apache 11 | apache2 \ 12 | # Install php 7.2 13 | libapache2-mod-php7.2 \ 14 | php7.2-cli \ 15 | php7.2-json \ 16 | php7.2-curl \ 17 | php7.2-fpm \ 18 | php7.2-gd \ 19 | php7.2-ldap \ 20 | php7.2-mbstring \ 21 | php7.2-mysql \ 22 | php7.2-soap \ 23 | php7.2-sqlite3 \ 24 | php7.2-xml \ 25 | php7.2-zip \ 26 | php7.2-intl \ 27 | php-imagick \ 28 | # Install tools 29 | openssl \ 30 | nano \ 31 | graphicsmagick \ 32 | imagemagick \ 33 | ghostscript \ 34 | mysql-client \ 35 | iputils-ping \ 36 | locales \ 37 | sqlite3 \ 38 | ca-certificates \ 39 | && apt-get clean && rm -rf /var/lib/apt/lists/* 40 | 41 | # Install composer 42 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer 43 | 44 | # Set locales 45 | RUN locale-gen en_US.UTF-8 en_GB.UTF-8 de_DE.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 it_IT.UTF-8 km_KH sv_SE.UTF-8 fi_FI.UTF-8 46 | 47 | # Configure PHP for TYPO3 48 | COPY typo3.ini /etc/php/7.2/mods-available/ 49 | RUN phpenmod typo3 50 | # Configure apache for TYPO3 51 | RUN a2enmod rewrite expires 52 | RUN echo "ServerName localhost" | tee /etc/apache2/conf-available/servername.conf 53 | RUN a2enconf servername 54 | # Configure vhost for TYPO3 55 | COPY typo3.conf /etc/apache2/sites-available/ 56 | RUN a2dissite 000-default 57 | RUN a2ensite typo3.conf 58 | 59 | EXPOSE 80 443 60 | 61 | WORKDIR /var/www/html 62 | 63 | RUN rm index.html 64 | 65 | HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl -f http://localhost || exit 1 66 | 67 | CMD apachectl -D FOREGROUND -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ubuntu18.04-php7.2-apache [![Release](https://img.shields.io/github/release/t3kit/ubuntu18.04-php7.2-apache.svg?style=flat-square)](https://github.com/t3kit/ubuntu18.04-php7.2-apache/releases) 2 | 3 | ## Docker image for TYPO3 CMS 4 | 5 | - Ubuntu 18.04 6 | - php 7.2 7 | - apache 2.4 8 | 9 | Suitable for **TYPO3 v9** and **t3kit9** project 10 | 11 | *** 12 | 13 | ### [CHANGELOG](https://github.com/t3kit/ubuntu18.04-php7.2-apache/blob/master/CHANGELOG.md) 14 | ### [Contributing to t3kit](https://github.com/t3kit/t3kit/blob/master/CONTRIBUTING.md) 15 | -------------------------------------------------------------------------------- /typo3.conf: -------------------------------------------------------------------------------- 1 | 2 | ServerAdmin admin@localhost 3 | ServerName localhost 4 | DocumentRoot /var/www/html/public 5 | 6 | Options Indexes FollowSymLinks MultiViews 7 | AllowOverride All 8 | Order allow,deny 9 | Allow from all 10 | Require all granted 11 | 12 | ErrorLog ${APACHE_LOG_DIR}/error.log 13 | CustomLog ${APACHE_LOG_DIR}/access.log combined 14 | -------------------------------------------------------------------------------- /typo3.ini: -------------------------------------------------------------------------------- 1 | file_uploads = On 2 | allow_url_fopen = On 3 | memory_limit = 512M 4 | max_execution_time = 240 5 | upload_max_filesize = 200M 6 | post_max_size = 400M 7 | max_input_vars = 1500 8 | 9 | --------------------------------------------------------------------------------