From a4ddf780ce6966e0fcbd3275cff18c491902a5f8 Mon Sep 17 00:00:00 2001 From: "N.A. Walhof" Date: Thu, 3 Jul 2025 15:05:49 +0200 Subject: [PATCH] Finish the sentences --- docs/integration/docker.mdx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/integration/docker.mdx b/docs/integration/docker.mdx index 4c9b888..ca3038b 100644 --- a/docs/integration/docker.mdx +++ b/docs/integration/docker.mdx @@ -46,7 +46,9 @@ docker run -p 1337:1337 -v /path/to/data:/data bknd ## Docker compose example -If you want to use docker compose and build the image directly from +If you want to use docker compose and build the image directly from the git repository. + +`compose.yml` ```yaml services: bknd: @@ -60,17 +62,22 @@ services: - ${DATA_DIR:-.}/data:/data ``` -When you want to build for a specific version +The docker compose can be extended to build a specific version of bknd. +Extend the build command with `args` and `labels`. +Within the args you can pass a `VERSION` build argument. +and labels will ensure that the image that has been build a unique identifier has. + +`compose.yml` ```yaml services: bknd: pull_policy: build - build: + build: context: https://github.com/bknd-io/bknd.git#main:docker args: - VERSION: 0.14.0 + VERSION: labels: - - x-bknd-version=0.14.0 + - x-bknd-version= ports: - 1337:1337 environment: