Skip to content

Commit

Permalink
fix (transaction): refactor docker compose, update names, hosts and p…
Browse files Browse the repository at this point in the history
…orts; 🐛
  • Loading branch information
MartinezAvellan committed Nov 28, 2024
1 parent 887edea commit aecc4a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
25 changes: 14 additions & 11 deletions components/transaction/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# TRANSACTION

# DEFAULT local
# ENV_NAME=production

Expand All @@ -7,28 +9,29 @@ APP_CONTEXT=/transaction/v1
SERVER_PORT=3002
SERVER_ADDRESS=:${SERVER_PORT}

# DB POSTGRESQL PRIMARY AND REPLICA
DB_HOST=primary-ledger
# DB POSTGRESQL PRIMARY
DB_HOST=midaz-postgres-primary
DB_USER=midaz
DB_NAME=transaction
DB_PASSWORD=lerian
DB_PORT=5701

DB_REPLICA_HOST=replica-ledger
# DB POSTGRESQL REPLICA
DB_REPLICA_HOST=midaz-postgres-replica
DB_REPLICA_USER=midaz
DB_REPLICA_NAME=transaction
DB_REPLICA_PASSWORD=lerian
DB_REPLICA_PORT=5702

# MONGO DB
MONGO_HOST=mongodb
MONGO_HOST=midaz-mongodb
MONGO_NAME=transaction
MONGO_USER=midaz
MONGO_PASSWORD=lerian
MONGO_PORT=5703

# REDIS
REDIS_HOST=redis
REDIS_HOST=midaz-redis
REDIS_PORT=5704
REDIS_USER=midaz
REDIS_PASSWORD=lerian
Expand All @@ -40,9 +43,9 @@ LOG_LEVEL=debug
LEDGER_GRPC_ADDR=midaz-ledger
LEDGER_GRPC_PORT=3001

# CASSDOOR
# CASDOOR
CASDOOR_PORT=8080
CASDOOR_ADDRESS=http://casdoor:${CASDOOR_PORT}
CASDOOR_ADDRESS=http://midaz-casdoor:${CASDOOR_PORT}
CASDOOR_CLIENT_ID=9670e0ca55a29a466d31
CASDOOR_CLIENT_SECRET=dd03f916cacf4a98c6a413d9c38ba102dce436a9
CASDOOR_ORGANIZATION_NAME=lerian
Expand All @@ -56,12 +59,12 @@ OTEL_LIBRARY_NAME=github.com/LerianStudio/midaz/components/transaction
OTEL_RESOURCE_SERVICE_VERSION=${VERSION}
OTEL_RESOURCE_DEPLOYMENT_ENVIRONMENT=${ENV_NAME}
OTEL_EXPORTER_OTLP_ENDPOINT_PORT=4317
OTEL_EXPORTER_OTLP_ENDPOINT=otel-lgtm:${OTEL_EXPORTER_OTLP_ENDPOINT_PORT}
OTEL_EXPORTER_OTLP_ENDPOINT=midaz-otel-lgtm:${OTEL_EXPORTER_OTLP_ENDPOINT_PORT}

# RABBITMQ
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT_HOST=5672
RABBITMQ_PORT_AMPQ=15672
RABBITMQ_HOST=midaz-rabbitmq
RABBITMQ_PORT_HOST=3003
RABBITMQ_PORT_AMPQ=3004
RABBITMQ_DEFAULT_USER=transaction
RABBITMQ_DEFAULT_PASS=lerian
RABBITMQ_EXCHANGE=ledger_accounts_exchange
Expand Down
1 change: 1 addition & 0 deletions components/transaction/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
services:
transaction:
container_name: midaz-transaction
restart: always
build:
context: ../../
dockerfile: ./components/transaction/Dockerfile
Expand Down

0 comments on commit aecc4a7

Please sign in to comment.