Skip to content

Commit

Permalink
chore: aligning .env and docker-compose.yml (#2070)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscolopezsancho authored Apr 3, 2024
1 parent 7513503 commit 8aceaa8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 10 additions & 1 deletion samples/java-protobuf-tracing/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
USER_SERVICE_HOST=host.docker.internal
# this is the port where the kalix runtime container will be exposed
# when running multiple services on your local machine, make sure that this port is unique
ADVERTISED_HTTP_PORT=9000

# this is the port where the user services (your application) will open
# when running multiple services on your local machine, make sure that this port is unique
USER_SERVICE_PORT=8080

# this variable defines the host where the kalix runtime (running in docker)
# will reach the user service in local development
USER_SERVICE_HOST=host.docker.internal
5 changes: 2 additions & 3 deletions samples/java-protobuf-tracing/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ services:
image: gcr.io/kalix-public/kalix-runtime:1.1.34
container_name: tracing
ports:
- "9000:9000"
- "${ADVERTISED_HTTP_PORT}:9000"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
JAVA_TOOL_OPTIONS: >
-Dkalix.proxy.telemetry.tracing.enabled=true
-Dkalix.proxy.telemetry.tracing.collector-endpoint=http://jaeger:4317
ADVERTISED_HTTP_PORT: ${ADVERTISED_HTTP_PORT}
USER_SERVICE_HOST: ${USER_SERVICE_HOST}
USER_SERVICE_PORT: ${USER_SERVICE_PORT}
# Comment to enable ACL check in dev-mode (see https://docs.kalix.io/services/using-acls.html#_local_development_with_acls)
ACL_ENABLED: "false"
jaeger:
image: jaegertracing/all-in-one:1.54
ports:
Expand Down

0 comments on commit 8aceaa8

Please sign in to comment.