Expose used ports instead of using `ports`.

This commit is contained in:
Ivaylo Novakov 2021-04-30 14:54:40 +02:00
parent aa23b488fa
commit 4488149560
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 13 additions and 13 deletions

View File

@ -21,10 +21,10 @@ services:
command: [ "--reporter.grpc.host-port=jaeger-collector:14250", "--reporter.grpc.retry.max=1000" ] command: [ "--reporter.grpc.host-port=jaeger-collector:14250", "--reporter.grpc.retry.max=1000" ]
container_name: jaeger-agent container_name: jaeger-agent
restart: on-failure restart: on-failure
ports: expose:
- "127.0.0.1:6831:6831/udp" - 6831
- "127.0.0.1:6832:6832/udp" - 6832
- "127.0.0.1:5778:5778" - 5778
environment: environment:
- LOG_LEVEL=debug - LOG_LEVEL=debug
networks: networks:
@ -38,10 +38,10 @@ services:
command: [ "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200" ] command: [ "--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
ports: expose:
- "127.0.0.1:14269:14269" - 14269
- "127.0.0.1:14268:14268" - 14268
- "127.0.0.1:14250:14250" - 14250
environment: environment:
- SPAN_STORAGE_TYPE=elasticsearch - SPAN_STORAGE_TYPE=elasticsearch
- LOG_LEVEL=debug - LOG_LEVEL=debug
@ -56,9 +56,9 @@ services:
command: [ "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200" ] command: [ "--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: expose:
- "127.0.0.1:16686:16686" - 16686
- "127.0.0.1:16687:16687" - 16687
environment: environment:
- SPAN_STORAGE_TYPE=elasticsearch - SPAN_STORAGE_TYPE=elasticsearch
- LOG_LEVEL=debug - LOG_LEVEL=debug
@ -77,8 +77,8 @@ services:
volumes: volumes:
# This dir needs to be chowned to 1000:1000 # This dir needs to be chowned to 1000:1000
- ./docker/data/elasticsearch/data:/usr/share/elasticsearch/data - ./docker/data/elasticsearch/data:/usr/share/elasticsearch/data
ports: expose:
- "127.0.0.1:9200:9200/tcp" - 9200
networks: networks:
shared: shared:
ipv4_address: 10.10.10.93 ipv4_address: 10.10.10.93