From d35acfeca817d19496156fb48af269eadc28adbf Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 6 Sep 2024 11:16:01 +0100 Subject: [PATCH] note interpolation (#95) - fixes #94 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index d1c71f0..52b760c 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,17 @@ services: See [`docker-compose.yml`](https://github.com/wemake-services/caddy-gen/blob/master/example/docker-compose.yml) example file. +> [!NOTE] +> Literal `$` should be doubled (`$$`) to avoid [docker compose interpolation](https://docs.docker.com/reference/compose-file/interpolation), e.g.: +> ``` +> labels: +> virtual.host.directives: | +> basic_auth { +> usr $2a$14$aSp4Ch... # will fail +> usr $2a$14$$aSp4Ch... # works +> } +> ``` + ### Backing up certificates To backup certificates make a volume: