Skip to content

Commit dff667a

Browse files
Cinzyaclaude
andcommitted
fix(docs): escape Vue template syntax in Docker Compose documentation
Wrap environment variable examples in v-pre container to prevent VitePress from interpreting {{ }} syntax as Vue template interpolation. This fixes a runtime error where `{{environment.SOME_SHARED_VARIABLE}}` was being evaluated as JavaScript instead of displayed as literal documentation text. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent dc93f58 commit dff667a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/knowledge-base/docker/compose.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ services:
133133

134134
3. Define the variable explicitly in the applications Environment Variables referencing your shared variable created in step 1;
135135

136+
::: v-pre
137+
136138
If in developer view, you can enter it like so;
137139

138140
```
@@ -141,6 +143,8 @@ SOME_VARIABLE_IN_COOLIFY_UI={{environment.SOME_SHARED_VARIABLE}}
141143
142144
Or in the normal view, the Name is what's referenced in the Docker Compose file `SOME_VARIABLE_IN_COOLIFY_UI` with the Value being the referenced environment variable `{{environment.SOME_SHARED_VARIABLE}}` as seen below. Once saved if correct, you'll see there's a third text box, if you reveal this, you should be able to see the true value, in this case `SOME_VALUE`.
143145
146+
:::
147+
144148
<ZoomableImage src="/docs/images/knowledge-base/compose/2.webp" />
145149
146150
### Coolify's Magic Environment Variables

0 commit comments

Comments
 (0)