Skip to content

Commit

Permalink
localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
SametBasturkk committed Jan 10, 2025
1 parent c6c568b commit 25edc6e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://185.136.206.146:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
Expand Down Expand Up @@ -103,7 +103,7 @@ services:
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: samet123
KC_DB_URL_DATABASE: db_keycloak
KC_HOSTNAME: 185.136.206.146:8081
KC_HOSTNAME: localhost:8081
KC_PROXY: edge
KC_HTTP_RELATIVE_PATH: /auth
KC_TRANSACTION_XA_ENABLED: false
Expand Down Expand Up @@ -144,12 +144,12 @@ services:
SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE: 10MB
SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE: 10MB
APP_SUPPORTED_EXTENSIONS: png,jpg,jpeg
ELK_LOGSTASH_SERVER: 185.136.206.146 # Reverted back to IP
ELK_LOGSTASH_SERVER: localhost # Reverted back to IP
ELK_LOGSTASH_PORT: 5000
ELK_ENABLE: "true"
APP_LOG_IDENTIFIER: image-minifier-main
KEYCLOAK_REALM: minifier
KEYCLOAK_AUTH_SERVER_URL: http://185.136.206.146:8081/auth # Reverted back to IP
KEYCLOAK_AUTH_SERVER_URL: http://localhost:8081/auth # Reverted back to IP
KEYCLOAK_RESOURCE: admin-cli
KEYCLOAK_CREDENTIALS_SECRET: TRXOHE4LbDRHtgoPMxVFBqBvT2dwhCZy
KEYCLOAK_GRANT_TYPE: client_credentials
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
server.port=8084
logging.level.org.springframework.web:INFO
spring.kafka.bootstrap-servers=185.136.206.146:9092
spring.kafka.bootstrap-servers=localhost:9092
spring.kafka.consumer.group-id=group_id
app.compression.pngquant=pngquant --output "%s" --quality %d --speed 4 --force --strip "%s"
app.compression.jpegoptim=jpegoptim --dest "%s" -o -m %d -s "%s"

elk.logstash.server=185.136.206.146
elk.logstash.server=localhost
elk.logstash.port=5000
elk.enable=true
app.log.identifier=185.136.206.146-4
app.log.identifier=localhost-4
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
server.port=8084
logging.level.org.springframework.web:INFO
spring.kafka.bootstrap-servers=185.136.206.146:9092
spring.kafka.bootstrap-servers=localhost:9092
spring.kafka.consumer.group-id=group_id
app.compression.pngquant=pngquant --output "%s" --quality %d --speed 4 --force --strip "%s"
app.compression.jpegoptim=jpegoptim --dest "%s" -o -m %d -s "%s"

elk.logstash.server=185.136.206.146
elk.logstash.server=localhost
elk.logstash.port=5000
elk.enable=true
app.log.identifier=185.136.206.146-4
app.log.identifier=localhost-4
10 changes: 5 additions & 5 deletions image-minifier-main/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server.port=8085
app.supported.extensions=png,jpg,jpeg


spring.datasource.url=jdbc:postgresql://185.136.206.146:5432/db_image
spring.datasource.url=jdbc:postgresql://localhost:5432/db_image
spring.datasource.username=postgres
spring.datasource.password=samet123
spring.jpa.hibernate.ddl-auto=update
Expand All @@ -13,23 +13,23 @@ spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

logging.level.org.springframework.web: INFO
logging.level.org.hibernate: INFO
spring.redis.host=185.136.206.146
spring.redis.host=localhost
spring.redis.port=6379

spring.http.log-request-details=true

spring.kafka.bootstrap-servers=185.136.206.146:9092
spring.kafka.bootstrap-servers=localhost:9092
spring.kafka.consumer.group-id=group_id

elk.logstash.server=185.136.206.146
elk.logstash.server=localhost
elk.logstash.port=5000
elk.enable=true
app.log.identifier=consumer-1

executor.core.pool.size=10

keycloak.realm=minifier
keycloak.auth-server-url=http://185.136.206.146:8081/auth
keycloak.auth-server-url=http://localhost:8081/auth
keycloak.resource=admin-cli
keycloak.credentials.secret=TRXOHE4LbDRHtgoPMxVFBqBvT2dwhCZy
keycloak.grant-type=client_credentials
Expand Down

0 comments on commit 25edc6e

Please sign in to comment.