fixed port exposure
This commit is contained in:
@@ -33,7 +33,7 @@ RUN chmod +x /app/entrypoint.sh
|
||||
# Source code will be mounted at runtime
|
||||
WORKDIR /src/api/gateway/tron
|
||||
|
||||
EXPOSE 50071 9407
|
||||
EXPOSE 50071 9408
|
||||
|
||||
# Use entrypoint wrapper to load vault token
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
@@ -197,7 +197,7 @@ TRON_GATEWAY_DIR=tron_gateway
|
||||
TRON_GATEWAY_COMPOSE_PROJECT=sendico-tron-gateway
|
||||
TRON_GATEWAY_SERVICE_NAME=sendico_tron_gateway
|
||||
TRON_GATEWAY_GRPC_PORT=50071
|
||||
TRON_GATEWAY_METRICS_PORT=9407
|
||||
TRON_GATEWAY_METRICS_PORT=9408
|
||||
|
||||
# Tron documents Mongo settings
|
||||
TRON_GATEWAY_MONGO_HOST=sendico_db1
|
||||
|
||||
@@ -38,6 +38,6 @@ COPY api/gateway/tron/env /app/env
|
||||
COPY api/gateway/tron/entrypoint.sh /app/entrypoint.sh
|
||||
COPY --from=build /out/tron-gateway /app/tron-gateway
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
EXPOSE 50071 9407
|
||||
EXPOSE 50071 9408
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
CMD ["/app/tron-gateway","--config.file","/app/config.yml"]
|
||||
|
||||
@@ -55,14 +55,14 @@ services:
|
||||
command: ["--config.file", "/app/config.yml"]
|
||||
ports:
|
||||
- "0.0.0.0:${TRON_GATEWAY_GRPC_PORT}:50071"
|
||||
- "0.0.0.0:${TRON_GATEWAY_METRICS_PORT}:9407"
|
||||
- "0.0.0.0:${TRON_GATEWAY_METRICS_PORT}:9408"
|
||||
volumes:
|
||||
- tron-gateway-vault-run:/run/vault:ro
|
||||
depends_on:
|
||||
sendico_tron_gateway_vault_agent:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL","wget -qO- http://localhost:9407/health | grep -q '\"status\":\"ok\"'"]
|
||||
test: ["CMD-SHELL","wget -qO- http://localhost:9408/health | grep -q '\"status\":\"ok\"'"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user