Skip to content

snezhig/bitrix-docker

Repository files navigation

Bitrix-Docker starter

The simple docker compose which has some containers for install bitrix and test it

This docker using for dev, not for production

Table of Contents

Features

  • Configure php version 7.x by .env file
  • Mailhog for mail test
  • Cron is enabled
  • Download bitrixsetup to install bitrix
  • Works from box in 90%

Installation

Step 1

  • Create a project dir mkdir bxproject && cd ./bxproject
  • Clone the repository to have docker separate
 git clone https://github.com/Snezhig/docker-compose-starter.git bxdocker
  • Go to repository cd ./bxdocker

Step 3

  • Make init.sh executable chmod +x init.sh

Step 4

  • Run init script ./init.sh
  • It will create .env for docker-compose and ask you to type some paths
//parent dir by default, because i prefer have docker separate from project

# Type the project path: *********
# Type the project name: *********
# Type the domain for project: *********
# Type the path to docker data: *********
# Type the log path: *********
# Download bitrix_setup.php? Y
# File is downloaded.

Step 5

  • Check .env file and correct it if need
  • In case you need cron put path to bitrix in ./images/php/cron.d/www

Step 6

  • Build the docker
docker-compose up --build -d
  • Then you can open http://localhost and see php info

Step 7

  • Install bitrix in public directory as you wish

Support

I will be glad for your remarks about configuration and decor of readme


License

License