Merge pull request 'fixed port exposure' (#389) from tron-389 into main
All checks were successful
ci/woodpecker/push/billing_documents Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/discovery Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/gateway_chain Pipeline was successful
ci/woodpecker/push/gateway_mntx Pipeline was successful
ci/woodpecker/push/gateway_tgsettle Pipeline was successful
ci/woodpecker/push/gateway_tron Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
All checks were successful
ci/woodpecker/push/billing_documents Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/discovery Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/gateway_chain Pipeline was successful
ci/woodpecker/push/gateway_mntx Pipeline was successful
ci/woodpecker/push/gateway_tgsettle Pipeline was successful
ci/woodpecker/push/gateway_tron Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
Reviewed-on: #389
This commit was merged in pull request #389.
This commit is contained in:
@@ -9,7 +9,7 @@ grpc:
|
|||||||
enable_health: true
|
enable_health: true
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
address: ":9407"
|
address: ":9408"
|
||||||
|
|
||||||
database:
|
database:
|
||||||
driver: mongodb
|
driver: mongodb
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ grpc:
|
|||||||
enable_health: true
|
enable_health: true
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
address: ":9407"
|
address: ":9408"
|
||||||
|
|
||||||
database:
|
database:
|
||||||
driver: mongodb
|
driver: mongodb
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ RUN chmod +x /app/entrypoint.sh
|
|||||||
# Source code will be mounted at runtime
|
# Source code will be mounted at runtime
|
||||||
WORKDIR /src/api/gateway/tron
|
WORKDIR /src/api/gateway/tron
|
||||||
|
|
||||||
EXPOSE 50071 9407
|
EXPOSE 50071 9408
|
||||||
|
|
||||||
# Use entrypoint wrapper to load vault token
|
# Use entrypoint wrapper to load vault token
|
||||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ TRON_GATEWAY_DIR=tron_gateway
|
|||||||
TRON_GATEWAY_COMPOSE_PROJECT=sendico-tron-gateway
|
TRON_GATEWAY_COMPOSE_PROJECT=sendico-tron-gateway
|
||||||
TRON_GATEWAY_SERVICE_NAME=sendico_tron_gateway
|
TRON_GATEWAY_SERVICE_NAME=sendico_tron_gateway
|
||||||
TRON_GATEWAY_GRPC_PORT=50071
|
TRON_GATEWAY_GRPC_PORT=50071
|
||||||
TRON_GATEWAY_METRICS_PORT=9407
|
TRON_GATEWAY_METRICS_PORT=9408
|
||||||
|
|
||||||
# Tron documents Mongo settings
|
# Tron documents Mongo settings
|
||||||
TRON_GATEWAY_MONGO_HOST=sendico_db1
|
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 api/gateway/tron/entrypoint.sh /app/entrypoint.sh
|
||||||
COPY --from=build /out/tron-gateway /app/tron-gateway
|
COPY --from=build /out/tron-gateway /app/tron-gateway
|
||||||
RUN chmod +x /app/entrypoint.sh
|
RUN chmod +x /app/entrypoint.sh
|
||||||
EXPOSE 50071 9407
|
EXPOSE 50071 9408
|
||||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||||
CMD ["/app/tron-gateway","--config.file","/app/config.yml"]
|
CMD ["/app/tron-gateway","--config.file","/app/config.yml"]
|
||||||
|
|||||||
@@ -55,14 +55,14 @@ services:
|
|||||||
command: ["--config.file", "/app/config.yml"]
|
command: ["--config.file", "/app/config.yml"]
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:${TRON_GATEWAY_GRPC_PORT}:50071"
|
- "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:
|
volumes:
|
||||||
- tron-gateway-vault-run:/run/vault:ro
|
- tron-gateway-vault-run:/run/vault:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
sendico_tron_gateway_vault_agent:
|
sendico_tron_gateway_vault_agent:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
@@ -605,7 +605,7 @@ services:
|
|||||||
- dev-tron-gateway-vault-run:/run/vault:ro
|
- dev-tron-gateway-vault-run:/run/vault:ro
|
||||||
ports:
|
ports:
|
||||||
- "50071:50071"
|
- "50071:50071"
|
||||||
- "9408:9407"
|
- "9408:9408"
|
||||||
networks:
|
networks:
|
||||||
- sendico-dev
|
- sendico-dev
|
||||||
environment:
|
environment:
|
||||||
@@ -622,7 +622,7 @@ services:
|
|||||||
NATS_PASSWORD: ${NATS_PASSWORD}
|
NATS_PASSWORD: ${NATS_PASSWORD}
|
||||||
NATS_URL: nats://${NATS_USER}:${NATS_PASSWORD}@dev-nats:4222
|
NATS_URL: nats://${NATS_USER}:${NATS_PASSWORD}@dev-nats:4222
|
||||||
TRON_GATEWAY_GRPC_PORT: 50071
|
TRON_GATEWAY_GRPC_PORT: 50071
|
||||||
TRON_GATEWAY_METRICS_PORT: 9407
|
TRON_GATEWAY_METRICS_PORT: 9408
|
||||||
VAULT_ADDR: ${VAULT_ADDR}
|
VAULT_ADDR: ${VAULT_ADDR}
|
||||||
VAULT_TOKEN_FILE: /run/vault/token
|
VAULT_TOKEN_FILE: /run/vault/token
|
||||||
TRON_GATEWAY_RPC_URL: ${TRON_GATEWAY_RPC_URL:-}
|
TRON_GATEWAY_RPC_URL: ${TRON_GATEWAY_RPC_URL:-}
|
||||||
|
|||||||
Reference in New Issue
Block a user