Public | Automated Build

Last pushed: a year ago
Short Description
apache-php for bitrix
Full Description



I use mysql:5.5 instead of mysql:latest, because the default setting of 'latest' cause strange errors during Bitrix installation script:

docker run --name mysql --restart=always -e MYSQL_ROOT_PASSWORD=some_password -v /host/mysql_cnf:/etc/mysql/conf.d -v /host/mysql_data:/var/lib/mysql -d mysql:5.5

bitrix container

docker run -d --name=bitrix --link mysql:db -v /your/host/folder:/var/www/site -e maryasov/apache-for-bitrix:apache2.4-php5.6.11
  • '-v /host_folder:/container_folder' to access html files from host. dont forget set permission to this host folder to 'www-data:www-data' - chown -R www-data:www-data /your/host/folder
  • for domain names resolving I use HAProxy container. set VIRTUAL_HOST variable to domain you want use for bitrix app.

HAProxy container

just link bitrix container and some others containers to HAProxy container

docker run -d --name haProxy --link bitrix:bitrix -p 80:80 tutum/haproxy
Docker Pull Command
Source Repository