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
|
||||
|
||||
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,7 +62,12 @@ 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:
|
||||
@@ -68,9 +75,9 @@ services:
|
||||
build:
|
||||
context: https://github.com/bknd-io/bknd.git#main:docker
|
||||
args:
|
||||
VERSION: 0.14.0
|
||||
VERSION: <version>
|
||||
labels:
|
||||
- x-bknd-version=0.14.0
|
||||
- x-bknd-version=<version>
|
||||
ports:
|
||||
- 1337:1337
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user