Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arvatoSCM/dockerize-magento2
Composer package for dockerizing Magento 2
https://github.com/arvatoSCM/dockerize-magento2
Last synced: 3 months ago
JSON representation
Composer package for dockerizing Magento 2
- Host: GitHub
- URL: https://github.com/arvatoSCM/dockerize-magento2
- Owner: arvatoSCM
- License: apache-2.0
- Created: 2016-03-29T13:22:32.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2021-06-23T12:09:04.000Z (over 3 years ago)
- Last Synced: 2024-07-16T08:42:56.874Z (4 months ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 112
- Watchers: 25
- Forks: 57
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Dockerize Magento 2
A composer package for dockerizing Magento 2
The composer package **arvatoscm/dockerize-magento2** deploys docker infrastructure defintion files such as [docker-compose.yml](docker-compose.yml) to your Magento 2 root folder and enables you to host your Magento 2 shops without having to install Apache/Nginx, MySQL or PHP on your system.
## Package Name
`arvatoscm/dockerize-magento2`
## Software Requirements
For Linux users you must have a recent version of [docker](https://github.com/docker/docker/releases) and [docker-compose](https://github.com/docker/compose/releases) installed.
If you are a Mac or Windows user, use the [Docker Toolbox](https://www.docker.com/products/docker-toolbox).
## Installation
Add `arvatoscm/dockerize-magento2` to your existing Magento 2 shop:
```bash
composer require --ignore-platform-reqs arvatoscm/dockerize-magento2
chmod +x bin/console
```This will place some files in your Magento root:
- `docker-compose.yml`
The docker infrastructure definition
- `bin/console`
A utility script for controlling dockerized Magento projects
- `config`
A folder which contains the configuration files for PHP, Nginx and phpMyAdmin## Usage
`dockerize-magento2` comes with `bin/console` script that can be used to install Magento and to execute Magentos' bin/magento script inside the PHP docker container:
Trigger the Magento 2 installation process:
```bash
bin/console install
```Start the docker containers:
```bash
bin/console start
```Stop the docker containers:
```bash
bin/console stop
```Execute `bin/magento` inside the docker container:
```bash
bin/console exec [arguments]
```For more information on how to use docker-compose visit: https://docs.docker.com/compose/
## Configuration
The `install` action depends on some parameters such as usernames and passwords. We have put in some default values for you that will work for a quick test:
```
DATABASE_NAME="magento2dockerized"
DATABASE_USER="magento"
DATABASE_PASSWORD="enAVINa2"
DATABASE_ROOT_PASSWORD="enAVINa2"ADMIN_USERNAME="admin"
ADMIN_FIRSTNAME="Admin"
ADMIN_LASTNAME="Inistrator"
ADMIN_EMAIL="[email protected]"
ADMIN_PASSWORD="enAVINa2"DEFAULT_LANGUAGE="en_US"
DEFAULT_CURRENCY="EUR"
DEFAULT_TIMEZONE="Europe/Berlin"BACKEND_FRONTNAME="management"
```If you want to use different parameters change the values in the [.env](.env) file to your needs.
After customizing the parameters just run trigger the installation with `bin/console install `.## Licensing
dockerize-magento2 is licensed under the Apache License, Version 2.0.
See [LICENSE](LICENSE) for the full license text.