* use full path to docker_cmd config script in bash helpers

This commit is contained in:
2023-02-04 17:47:02 +03:00
parent 7de00f8385
commit ca9f40667b
7 changed files with 27 additions and 17 deletions

View File

@ -119,6 +119,14 @@ For restart `nginx` after some changes in nginx configuration, you might:
`./restart-nginx.sh`
### Elastic
Copy example
Launch:
`dc -f docker-compose.elastic.yml up -d elastic`
## Src build need DOCKER_BUILDKIT
If you want build own workspace image. You need export environment variable

View File

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

View File

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

View File

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

View File

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

View File

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

View File

@ -1,23 +1,15 @@
version: '3.6'
services:
elastic732:
extends:
file: docker-compose.elastic.base.yml
service: elastic
build:
dockerfile: elastic732.Dockerfile
volumes:
- elastic732:/usr/share/elastic/data
elastic752:
elastic:
extends:
file: docker-compose.elastic.base.yml
service: elastic
restart: always
build:
dockerfile: elastic752.Dockerfile
volumes:
- elastic752:/usr/share/elastic/data
- elastic:/usr/share/elastic/data
volumes:
elastic732:
elastic752:
elastic: