Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit a9eea0a

Browse files
author
Antony MECHIN
committed
Examples.hello-world: Style.
Signed-off-by: Antony MECHIN <[email protected]>
1 parent 7f6d98d commit a9eea0a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

examples/hello-world/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In this example, we will create a single service application that deploys a web
66

77
Initialize the single file project using `docker-app init -s hello-world`. A single file application contains the three sections, `metadata` corresponding `metadata.yml`, `settings` corresponding `settings.yml` and `services` corresponding `docker-compose.yml`.
88

9-
```
9+
```bash
1010
$ ls -l
1111
-rw-r--r-- 1 README.md
1212
$ docker-app init -s hello-world
@@ -50,7 +50,10 @@ Edit the `description` and `maintainers` fields in the metadata section.
5050

5151
Add a service `hello` to the `services` section.
5252

53-
```
53+
---
54+
55+
[hello-world.dockerapp](hello-world.dockerapp):
56+
```yml
5457
[...]
5558
---
5659
#
@@ -71,7 +74,10 @@ services:
7174

7275
In the settings section, add every variables with the default value you want, e.g.:
7376

74-
```
77+
---
78+
79+
[hello-world.dockerapp](hello-world.dockerapp):
80+
```yml
7581
[...]
7682
---
7783
#
@@ -87,9 +93,9 @@ You can now render your application by running `docker-app render` or even perso
8793

8894
Create a `render` directory and redirect the output of `docker-app render ...` to `render/docker-compose.yml`.
8995

90-
```
91-
mkdir -p render
92-
docker-app render -s text="hello user" > render/docker-compose.yml
96+
```bash
97+
$ mkdir -p render
98+
$ docker-app render -s text="hello user" > render/docker-compose.yml
9399
```
94100

95101
### Deploy

0 commit comments

Comments
 (0)