The simple docker compose which has some containers for install bitrix and test it
This docker using for dev, not for production
- 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%
- 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
- Make
init.sh
executablechmod +x init.sh
- 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.
- Check .env file and correct it if need
- In case you need cron put path to bitrix in
./images/php/cron.d/www
- Build the docker
docker-compose up --build -d
- Then you can open
http://localhost
and see php info
- Install bitrix in public directory as you wish
I will be glad for your remarks about configuration and decor of readme