Try by mounting the script as a volume.
This commit is contained in:
parent
05b4b5a527
commit
6e236f64c7
|
@ -1,3 +1,6 @@
|
||||||
[submodule "docker/wait-for-it/wait-for-it"]
|
[submodule "docker/wait-for-it/wait-for-it"]
|
||||||
path = docker/wait-for-it/wait-for-it
|
path = docker/wait-for-it/wait-for-it
|
||||||
url = https://github.com/vishnubob/wait-for-it.git
|
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
|
||||||
|
|
|
@ -70,7 +70,7 @@ services:
|
||||||
kratos-migrate:
|
kratos-migrate:
|
||||||
image: oryd/kratos:v0.5.5-alpha.1
|
image: oryd/kratos:v0.5.5-alpha.1
|
||||||
container_name: kratos-migrate
|
container_name: kratos-migrate
|
||||||
restart: off
|
restart: "no"
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
environment:
|
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
|
- 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
|
||||||
|
|
|
@ -33,7 +33,7 @@ services:
|
||||||
|
|
||||||
jaeger-collector:
|
jaeger-collector:
|
||||||
image: jaegertracing/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
|
container_name: jaeger-collector
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
expose:
|
expose:
|
||||||
|
@ -43,15 +43,17 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- SPAN_STORAGE_TYPE=elasticsearch
|
- SPAN_STORAGE_TYPE=elasticsearch
|
||||||
- LOG_LEVEL=debug
|
- LOG_LEVEL=debug
|
||||||
|
volumes:
|
||||||
|
- ./packages/wait-for-it:/wait-for-it
|
||||||
networks:
|
networks:
|
||||||
shared:
|
shared:
|
||||||
ipv4_address: 10.10.10.91
|
ipv4_address: 10.10.10.91
|
||||||
depends_on:
|
depends_on:
|
||||||
- wait-for-it
|
- elasticsearch
|
||||||
|
|
||||||
jaeger-query:
|
jaeger-query:
|
||||||
image: jaegertracing/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
|
container_name: jaeger-query
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
ports:
|
ports:
|
||||||
|
@ -61,22 +63,13 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- SPAN_STORAGE_TYPE=elasticsearch
|
- SPAN_STORAGE_TYPE=elasticsearch
|
||||||
- LOG_LEVEL=debug
|
- LOG_LEVEL=debug
|
||||||
|
volumes:
|
||||||
|
- ./packages/wait-for-it:/wait-for-it
|
||||||
networks:
|
networks:
|
||||||
shared:
|
shared:
|
||||||
ipv4_address: 10.10.10.92
|
ipv4_address: 10.10.10.92
|
||||||
depends_on:
|
depends_on:
|
||||||
- wait-for-it
|
- elasticsearch
|
||||||
|
|
||||||
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
|
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.15
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
FROM bash:5
|
|
||||||
|
|
||||||
COPY wait-for-it/wait-for-it.sh ./
|
|
Reference in New Issue