https://github.com/psi-4ward/docker-contao
Docker Container for Contao CMS
https://github.com/psi-4ward/docker-contao
contao contao-cms docker docker-container
Last synced: 5 months ago
JSON representation
Docker Container for Contao CMS
- Host: GitHub
- URL: https://github.com/psi-4ward/docker-contao
- Owner: psi-4ward
- Created: 2016-10-19T21:18:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T09:35:39.000Z (almost 6 years ago)
- Last Synced: 2026-02-01T14:53:04.992Z (6 months ago)
- Topics: contao, contao-cms, docker, docker-container
- Language: Shell
- Size: 2.55 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contao Docker Container
[](https://microbadger.com/images/psitrax/contao)
[](https://hub.docker.com/r/psitrax/contao/)
[](https://hub.docker.com/r/psitrax/contao/)
[](https://hub.docker.com/r/psitrax/contao/)
* Based on CentOS 7
* Apache 2.4 (event)
* PHP 7.3
* Preinstalled composer
* Auto-adjust `DocumentRoot` for Contao 4
* Configured for [Contao CMS](https://www.contao.org)
* 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
```
// Start MySQL/MariaDB first
sudo docker run --rm --name mysql \
-e MYSQL_ROOT_PASSWORD=root \
-v $HOME/contao/_db:/var/lib/mysql \
mariadb
// take contao installation from $HOME/contao/contao
sudo docker run --rm --name contao \
-v $HOME/contao/contao:/var/www \
--link mysql:mysql \
-p 80:80 \
-e RUN_UID=$UID \
-e XDEBUG=true \
-e PHP_VALUE=max_execution_time=90,memory_limit=512M \
psitrax/contao
// enter the Container
sudo docker exec -ti contao bash
root at 53e71dbf4adc in ~ su apache
apache at 53e71dbf4adc in /var/www ~ composer create-project contao/standard-edition website
// if permission problems occour change owner
root at 53e71dbf4adc in ~ chown -R apache /var/www
// or managed edition
apache at 53e71dbf4adc in /var/www ~ composer create-project contao/managed-edition website
apache at 53e71dbf4adc in /var/www ~ mv website/* website/.gitignore .
// Restart Container to detect Contao 4
```
## 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=512M`
## Maintainer
* Christoph Wiechert