Sign inSign up

mediamotion/contao44

By mediamotion

•Updated almost 7 years ago

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

Image
0

10K+

mediamotion/contao44 repository overview

⁠Contao Docker Container

  • Based on CentOS 7
  • Apache 2.4 (event)
  • PHP 7.x
  • Preinstalled composer
  • Auto-adjust DocumentRoot for Contao 4
  • 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:
    container_name: mysql
    environment:
      - MYSQL_ROOT_PASSWORD=root
    volumes:
      - '~/Databases:/var/lib/mysql'
    image: 'mysql:5.7'
  phpmyadmin:
    container_name: phpmyadmin
    depends_on:
      - mysql
    links:
      - 'mysql:db'
    ports:
      - '8080:80'
    image: 'phpmyadmin/phpmyadmin:latest'
  contao:
    container_name: contao
    depends_on:
      - mysql
    volumes:
      - '~/Sites/projectfolder:/var/www:delegated'
      - '~/Sites/.gitconfig:/var/www/.gitconfig'
    links:
      - 'mysql:db'
    ports:
      - '80:80'
    environment:
      - XDEBUG=false
      - 'PHP_VALUE=max_execution_time=90,memory_limit=2048M'
    image: mediamotion/contao44: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/contao44