docs(docker-compose): Update example directory layout (#7)

This commit is contained in:
hygienic-books 2023-06-13 00:34:19 +02:00
parent 299c15e30d
commit 4bc93e5546

View File

@ -191,28 +191,37 @@ Make some code changes, for example to the Docker Compose Cookiecutter template.
service [mydir]: myservice service [mydir]: myservice
component_list [myservice]: mycomponent_one,mycomponent_two component_list [myservice]: mycomponent_one,mycomponent_two
context [ctx]: ux_novosibirsk context [ctx]: ux_novosibirsk
Select build:
1 - no
2 - yes
Choose from 1, 2 [1]: 2
``` ```
- Observe that in `/tmp/cookiecutter-docker-compose` you now have your rendered Docker Compose dir: - Observe that in `/tmp/cookiecutter-docker-compose` you now have your rendered Docker Compose dir:
``` ```
# tree /tmp/cookiecutter-docker-compose # tree -a .
/tmp/cookiecutter-docker-compose .
└── mydir └── mydir
├── build-context ├── build-context
│   ├── mycomponent_one │   ├── mycomponent_one
│   │   ├── docker-data │   │   ├── docker-data
│   │   │   └── .gitkeep
│   │   ├── Dockerfile │   │   ├── Dockerfile
│   │   └── extras │   │   └── extras
│   │   └── .gitkeep
│   └── mycomponent_two │   └── mycomponent_two
│   ├── docker-data │   ├── docker-data
│   │   └── .gitkeep
│   ├── Dockerfile │   ├── Dockerfile
│   └── extras │   └── extras
│   └── .gitkeep
├── common-settings.yml ├── common-settings.yml
├── docker-compose.override.yml ├── docker-compose.override.yml
├── docker-compose.yml ├── docker-compose.yml
└── env ├── env
└── fqdn_context.env.example │   └── fqdn_context.env.example
└── README.md
``` ```
- For rapid testing you will most likely want to not type prompt answers repeatedly. Give them as command line arguments instead, also specify `--no-input` to suppress prompts: - For rapid testing you will most likely want to not type prompt answers repeatedly. Give them as command line arguments instead, also specify `--no-input` to suppress prompts: