mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
Finish the sentences
This commit is contained in:
@@ -46,7 +46,9 @@ docker run -p 1337:1337 -v /path/to/data:/data bknd
|
|||||||
|
|
||||||
## Docker compose example
|
## 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
|
```yaml
|
||||||
services:
|
services:
|
||||||
bknd:
|
bknd:
|
||||||
@@ -60,17 +62,22 @@ services:
|
|||||||
- ${DATA_DIR:-.}/data:/data
|
- ${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
|
```yaml
|
||||||
services:
|
services:
|
||||||
bknd:
|
bknd:
|
||||||
pull_policy: build
|
pull_policy: build
|
||||||
build:
|
build:
|
||||||
context: https://github.com/bknd-io/bknd.git#main:docker
|
context: https://github.com/bknd-io/bknd.git#main:docker
|
||||||
args:
|
args:
|
||||||
VERSION: 0.14.0
|
VERSION: <version>
|
||||||
labels:
|
labels:
|
||||||
- x-bknd-version=0.14.0
|
- x-bknd-version=<version>
|
||||||
ports:
|
ports:
|
||||||
- 1337:1337
|
- 1337:1337
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user