docs(docker-compose): Update README.md with example directory structure

This commit is contained in:
2023-06-14 22:11:04 +02:00
parent 9ef85a53e6
commit de2b657ec1
5 changed files with 90 additions and 29 deletions

View File

@@ -87,4 +87,38 @@ Create ZFS datasets and set permissions as needed.
{%- endfor %}
```
## Additional files
Place the following files on target server. Use the directory structure at [build-context](build-context) as a guide, specifically at `docker-data`.
```
build-context/
{%- if ',' in cookiecutter.__component_list_slug -%}
{%- set components = cookiecutter.__component_list_slug.split(',') -%}
{%- for component in components %}
{%- if not loop.last %}
├── {{ component }}
│ ├── docker-data
│ | └── config
│ │ └── {{ component }}.cfg
│ ├── Dockerfile
│ └── extras
{%- else %}
└── {{ component }}
├── docker-data
| └── config
│ └── {{ component }}.cfg
├── Dockerfile
└── extras
{%- endif %}
{%- endfor %}
{%- else %}
├── docker-data
│ └── config
│ └── {{ cookiecutter.__service_slug }}.cfg
├── Dockerfile
└── extras
{%- endif %}
```
When done head back up to [How to run](#how-to-run).