Sign inSign up

mediamotion/contao49

By mediamotion

•Updated almost 7 years ago

Ein CentOS 7 Image mit PHP, Apache, Composer, Git und weiteren Tools.

Image
0

10K+

mediamotion/contao49 repository overview

⁠Contao Docker Container

  • Based on CentOS 7
  • Apache 2.4 (event)
  • PHP 7.3+
  • Preinstalled composer
  • Auto-adjust DocumentRoot for Contao 4.9
  • Configured for Contao CMS⁠
  • Ability to change UID of Apache to circumvent permission problems
  • Includes some useful tools and presets like git, curl, bashrc and vimrc
  • Xdebug (disabled by default), Imagemagick, php-(bcmath,intl,json,mbstring,mcrypt,mysql,snmp,soap,xml)

⁠Usage

// Best use with docker-compose
version: '3.3'
services:
  mysql:
    ports:
      - '3306:3306'
    environment:
      - MYSQL_ROOT_PASSWORD=root
    volumes:
      - '../_global/databases/mysql5-7:/var/lib/mysql'
    image: 'mysql:5.7'
  phpmyadmin:
    depends_on:
      - mysql
    links:
      - 'mysql:db'
    ports:
      - '8081:80'
    image: 'phpmyadmin/phpmyadmin:latest'
  contao:
    depends_on:
      - mysql
    volumes:
      - './:/var/www:delegated'
      - '../_global/composer/cache/:/usr/share/httpd/.composer/cache:cached'
    links:
      - 'mysql:db'
    ports:
      - '81:80'
    environment:
      - XDEBUG=false
      - 'PHP_VALUE=max_execution_time=90,memory_limit=4096M'
    image: 'mediamotion/contao49:php-7.3'

⁠Configuration

Use Environment Variables for Configuration

  • TIMEZONE=America/New_York Adjust the timezone (Default: Europe/Berlin)
  • RUN_UID The UID of internal apache User. Set it to your local UID to prevent file access problmes while developing.
  • XDEBUG=true Enable xdebug (disabled by default)
  • PHP_VALUE / PHP_ADMIN_VALUE / PHP_FLAG Overwrite arbitrary PHP settings: eg max_execution_time=90,memory_limit=2048M

Tag summary

Content type

Image

Digest

Size

268.3 MB

Last updated

almost 7 years ago

docker pull mediamotion/contao49