<commit_before>## Supported tags and respective `Dockerfile` links
### Production build
* [`2`, `latest` (*2.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/master/2.x/Dockerfile)
* [`1` (*1.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/master/1.x/Dockerfile)

### Sandbox build
* [`2-dev` (*2.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/sandbox/2.x/Dockerfile)
* [`1-dev` (*1.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/sandbox/1.x/Dockerfile)

## What is this ?
Docker container built with CentOS 7, NGINX and PHP with compatible version and modules for Magento

Sandbox build for Magento 2.x (`2-dev`) comes with composer, nodejs, grunt.

These are the Docker Hub autobuild images located [here](https://hub.docker.com/r/locnh/docker-magento/).

![Magento Logo](http://www.elevateweb.co.uk/wp-content/themes/porto/assets/img/headers/mage-logo.png)

## How to start
### The Simplest way, NginX - PHP-FPM by default
1. Pull the latest image

  ```
  $ docker pull locnh/docker-magento
  ```

2. Create container

  ```
  $ docker run --name magento -v /path/to/magento:/var/www/html -p 80:80 -d locnh/docker-magento
  ```

That's it !

## More Options

#### Using Apache (httpd) instead of NginX
- Just add the environment variable with `-e WEB_SRV=apache` or `-e WEB_SRV=httpd`
- Example:<commit_msg>Fix broken link<commit_after>## Supported tags and respective `Dockerfile` links
### Production build
* [`2`, `latest` (*2.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/master/2.x/Dockerfile)
* [`1` (*1.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/master/1.x/Dockerfile)

### Sandbox build
* [`2-dev` (*2.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/sandbox/2.x/Dockerfile)
* [`1-dev` (*1.x/Dockerfile*)](https://github.com/locnh/docker-magento/blob/sandbox/1.x/Dockerfile)

## What is this ?
Docker container built with CentOS 7, NGINX and PHP with compatible version and modules for Magento

Sandbox build for Magento 2.x (`2-dev`) comes with composer, nodejs, grunt.

These are the Docker Hub autobuild images located [here](https://hub.docker.com/r/locnh/docker-magento/).

## How to start
### The Simplest way, NginX - PHP-FPM by default
1. Pull the latest image

  ```
  $ docker pull locnh/docker-magento
  ```

2. Create container

  ```
  $ docker run --name magento -v /path/to/magento:/var/www/html -p 80:80 -d locnh/docker-magento
  ```

That's it !

## More Options

#### Using Apache (httpd) instead of NginX
- Just add the environment variable with `-e WEB_SRV=apache` or `-e WEB_SRV=httpd`
- Example:
{'fraction_non_alphanumeric': 0.16634944803958887, 'fraction_numerical': 0.01598781880472021, 'mean_word_length': 4.12280701754386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '36283', 'n_tokens_mistral': 1001, 'n_tokens_neox': 966, 'n_words': 227}