Try by mounting the script as a volume.

This commit is contained in:
Ivaylo Novakov 2021-05-11 14:11:42 +02:00
parent 05b4b5a527
commit 6e236f64c7
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
5 changed files with 12 additions and 19 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "docker/wait-for-it/wait-for-it"]
path = docker/wait-for-it/wait-for-it
url = https://github.com/vishnubob/wait-for-it.git
[submodule "packages/wait-for-it"]
path = packages/wait-for-it
url = https://github.com/vishnubob/wait-for-it.git

View File

@ -70,7 +70,7 @@ services:
kratos-migrate:
image: oryd/kratos:v0.5.5-alpha.1
container_name: kratos-migrate
restart: off
restart: "no"
logging: *default-logging
environment:
- DSN=cockroach://root@cockroach:26257/defaultdb?max_conns=20&max_idle_conns=4&sslmode=verify-full&sslcert=/certs/node.crt&sslkey=/certs/node.key&sslrootcert=/certs/ca.crt

View File

@ -33,7 +33,7 @@ services:
jaeger-collector:
image: jaegertracing/jaeger-collector
command: [ "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200" ]
command: [ "/wait-for-it/wait-for-it.sh", "elasticsearch:9200", "--", "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200" ]
container_name: jaeger-collector
restart: on-failure
expose:
@ -43,15 +43,17 @@ services:
environment:
- SPAN_STORAGE_TYPE=elasticsearch
- LOG_LEVEL=debug
volumes:
- ./packages/wait-for-it:/wait-for-it
networks:
shared:
ipv4_address: 10.10.10.91
depends_on:
- wait-for-it
- elasticsearch
jaeger-query:
image: jaegertracing/jaeger-query
command: [ "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200" ]
command: [ "/wait-for-it/wait-for-it.sh", "elasticsearch:9200", "--", "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200" ]
container_name: jaeger-query
restart: on-failure
ports:
@ -61,22 +63,13 @@ services:
environment:
- SPAN_STORAGE_TYPE=elasticsearch
- LOG_LEVEL=debug
volumes:
- ./packages/wait-for-it:/wait-for-it
networks:
shared:
ipv4_address: 10.10.10.92
depends_on:
- wait-for-it
wait-for-it:
build:
context: ./docker/wait-for-it
dockerfile: Dockerfile
command: [ "./wait-for-it.sh", "localhost:9200" ]
container_name: wait-for-it
restart: on-failure
networks:
shared:
ipv4_address: 10.10.10.95
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.15

View File

@ -1,3 +0,0 @@
FROM bash:5
COPY wait-for-it/wait-for-it.sh ./