<commit_before># Composer
Node.js package for generating docker-compose.yml file for containers from a json.

## About the package

The main goal of this repository to create a small lightweight npm package, which generates docker-compose.yml from a json file.

The json has a very easy ruleset, it use the docker-compose.yml reference for the available elements. This version support the followed commands from the docker-compose.yml reference:

- ports
- environment
- extra_hosts
- image


You can find and read the complete docker-compose.yml reference on the next url: [Compose Reference](https://docs.docker.com/compose/yml/)

## Rules of the json

You should use the followed rules for the json file, which is the only arguments for this package.

- ports : This element is array, example syntax: ports :

 [ 'PORT_NUMBER1','PORT_NUMBER2']
- environment : This element is a subdocument, you can describe it as the followed style:

  { "ENVIRONMENT_VARIABLE1" : "VARIABLE_VALUE"}
- extra_hosts : Same a the envorinment element:
<commit_msg>indent fix in readme<commit_after># Composer
Node.js package for generating docker-compose.yml file for containers from a json.

## About the package

The main goal of this repository to create a small lightweight npm package, which generates docker-compose.yml from a json file.

The json has a very easy ruleset, it use the docker-compose.yml reference for the available elements. This version support the followed commands from the docker-compose.yml reference:

- ports
- environment
- extra_hosts
- image


You can find and read the complete docker-compose.yml reference on the next url: [Compose Reference](https://docs.docker.com/compose/yml/)

## Rules of the json

You should use the followed rules for the json file, which is the only arguments for this package.

- ports : This element is array, example syntax: ports :

  [ 'PORT_NUMBER1','PORT_NUMBER2']
- environment : This element is a subdocument, you can describe it as the followed style:

  { "ENVIRONMENT_VARIABLE1" : "VARIABLE_VALUE"}
- extra_hosts : Same a the envorinment element:

{'fraction_non_alphanumeric': 0.06666666666666667, 'fraction_numerical': 0.002857142857142857, 'mean_word_length': 4.373401534526854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '1932884', 'n_tokens_mistral': 598, 'n_tokens_neox': 557, 'n_words': 271}