Change volumes back to configs, so they can be loaded on runtime (fixes #3)
Change-Id: I4756aa8fa92be9f7913ae15b6c3e0f4f81b1862c
diff --git a/Readme.md b/Readme.md
index 1cf109b..c278429 100644
--- a/Readme.md
+++ b/Readme.md
@@ -38,11 +38,10 @@
initialize and start the service with
```shell
-$ INDEX=./index docker-compose --profile=init up
$ INDEX=./index docker-compose --profile=full up
```
-The init step creates a file called `super_client_info` in the
+This will generate a file called `super_client_info` in the
current directory that acts as a shared secret between the frontend and the backend.
To enable this in Kalamar, the configuration file `kalamar.production.conf`
needs to point to the mounted file, so it requires a configuration along the lines of
diff --git a/compose.yaml b/compose.yaml
index afa4f07..0bf1673 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -31,9 +31,10 @@
- type: bind
source: "${PWD}/kalamar.production.conf"
target: "/kalamar/kalamar.production.conf"
- - type: bind
- source: "${PWD}/super_client_info"
+ configs:
+ - source: super_client_info
target: /kalamar/super_client_info
+ mode: 0555
depends_on:
kustvakt-full:
condition: service_started
@@ -55,9 +56,10 @@
- 8089
volumes:
- "${INDEX}:/kustvakt/index:z"
- - type: bind
- source: "${PWD}/super_client_info"
+ configs:
+ - source: super_client_info
target: /kustvakt/client/super_client_info
+ mode: 0555
profiles:
- full
depends_on:
@@ -65,4 +67,4 @@
condition: service_completed_successfully
configs:
super_client_info:
- external: true
+ file: ./super_client_info