<commit_before><commit_msg>docker readme<commit_after>## How to build it with Docker:

#### Setup

Execute below commands inside `docker` folder of that repository.

#### Build

```bash
docker-compose build
```

#### Run containers

```bash
docker-compose up -d
```

#### Install all dependencies using Composer:

```bash
docker-compose run php composer install
```

#### Configure

Make sure to adapt the following values in your configuration file:

```yaml
# app/config/parameters.yml
parameters:
    # ...
    env(DATABASE_HOST): postgres
    env(DATABASE_PORT): null
    env(DATABASE_NAME): publisher
    env(DATABASE_USER): postgres
    env(DATABASE_PASSWORD): <PASSWORD>
```

#### Create database:

```bash
docker-compose run php app/console doctrine:database:create
```

#### Update database schema using Doctrine migrations:

```bash
docker-compose run php app/console doctrine:migrations:migrate
```

#### Load fixtures:

```bash
docker-compose run php app/console doctrine:fixtures:load
```

or 

```bash
docker-compose run php php -d memory_limit=-1 app/console doctrine:fixtures:load
```

if the memory limit exceeded.

#### Install demo theme and its assets:

```bash
docker-compose run php app/console swp:theme:install 123abc src/SWP/Bundle/FixturesBundle/Resources/themes/DefaultTheme/ -f
docker-compose run php app/console sylius:theme:assets:install
```

#### Preview

Go to http://localhost:8080/app_dev.php for viewing the app in dev mode.

*Note* If you use Docker for Windows, you might need to additionally 
change the values of `env(SWP_DOMAIN)` and `cache_servers` params from `localhost` to `127.0.0.1`.
{'fraction_non_alphanumeric': 0.1245398773006135, 'fraction_numerical': 0.008588957055214725, 'mean_word_length': 4.866906474820144, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2174528', 'n_tokens_mistral': 551, 'n_tokens_neox': 494, 'n_words': 162}