Commit 822b3122 authored by godog's avatar godog

Use single-host Thanos port allocation

parent 629c0b0b
Pipeline #5912 passed with stages
in 2 minutes and 6 seconds
......@@ -4,6 +4,9 @@ docker-thanos
A Docker image to run Thanos. All Thanos components are run by default on
container startup, individual components can be disabled via the environment.
Component ports are configured as described here:
https://thanos.io/getting-started.md/#testing-thanos-on-single-host
The following environment variables are understood:
QUERY_OFF
......
thanos-query.service: {
command: "/usr/sbin/thanos query --http-address=$(QUERY_HTTP_ADDRESS:-0.0.0.0:10902) --grpc-address=$(QUERY_GRPC_ADDRESS:-0.0.0.0:10901) --store.sd-files=/etc/thanos/store-sd/*.yml $(QUERY_FLAGS)",
command: "/usr/sbin/thanos query --http-address=$(QUERY_HTTP_ADDRESS:-0.0.0.0:10904) --grpc-address=$(QUERY_GRPC_ADDRESS:-0.0.0.0:10903) --store.sd-files=/etc/thanos/store-sd/*.yml $(QUERY_FLAGS:-)",
enabled: "$(QUERY_OFF:|false|true)",
kill_signal: SIGTERM,
exit_kills: true,
......
thanos-sidecar.service: {
command: "/usr/sbin/thanos sidecar --http-address=$(SIDECAR_HTTP_ADDRESS:-0.0.0.0:10912) --grpc-address=$(SIDECAR_GRPC_ADDRESS:-0.0.0.0:10911) $(SIDECAR_FLAGS)",
command: "/usr/sbin/thanos sidecar --http-address=$(SIDECAR_HTTP_ADDRESS:-0.0.0.0:10902) --grpc-address=$(SIDECAR_GRPC_ADDRESS:-0.0.0.0:10901) $(SIDECAR_FLAGS:-)",
enabled: "$(SIDECAR_OFF:|false|true)",
kill_signal: SIGTERM,
exit_kills: true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment