extremedevs commented on issue #3381:
URL:
https://github.com/apache/incubator-kie-tools/issues/3381#issuecomment-3675048513
Sorry i attached the document but apparently i failed....
Here the compose file :
`name: kogito-test
services:
postgres:
image: postgres
restart: always
# set shared memory limit when using docker compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 10s
timeout: 3s
retries: 3
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: kogito-pass
POSTGRES_USER: kogito-user
POSTGRES_DB: kogito
broker:
image: apache/kafka:latest
hostname: broker
container_name: broker
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP:
PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT,CONTROLLER:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS:
PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_NODE_ID: 1
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@broker:29093
KAFKA_LISTENERS:
PLAINTEXT://broker:29092,CONTROLLER://broker:29093,PLAINTEXT_HOST://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LOG_DIRS: /tmp/kraft-combined-logs
CLUSTER_ID: MkU3OEVBNTcwNTJENDM2Qk
kafka-ui:
image: provectuslabs/kafka-ui
container_name: kafka-ui
depends_on:
- broker
ports:
- "7777:8080"
restart: always
environment:
- KAFKA_CLUSTERS_0_NAME=broker
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=broker:29092
data-index:
container_name: data-index
image:
apache/incubator-kie-kogito-data-index-postgresql:${KOGITO_VERSION}
ports:
- "8180:8080"
depends_on:
broker:
condition: service_started
postgres:
condition: service_healthy
volumes:
- ./target/protobuf:/home/kogito/data/protobufs/
environment:
QUARKUS_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/kogito"
QUARKUS_DATASOURCE_USERNAME: kogito-user
QUARKUS_DATASOURCE_PASSWORD: kogito-pass
KAFKA_BOOTSTRAP_SERVERS: broker:29092
QUARKUS_HTTP_CORS_ORIGINS: "/.*/"
KOGITO_DATA_INDEX_PROPS:
-Dquarkus.hibernate-orm.database.generation=update -Dquarkus.oidc.enabled=false
-Dkogito.security.auth.enabled=false
management-console:
container_name: management-console
image: apache/incubator-kie-kogito-management-console:${KOGITO_VERSION}
ports:
- "8280:8080"
depends_on:
data-index:
condition: service_started
#keycloak:
# condition: service_healthy
volumes:
- ./svg/:/home/kogito/data/svg/
environment:
KOGITO_DATAINDEX_HTTP_URL:
http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8180/graphql
#KOGITO_MANAGEMENT_CONSOLE_PROPS:
-Dkogito.consoles.keycloak.config.url=http://localhost:8480/auth
-Dkogito.consoles.keycloak.config.health-check-url=http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration
-Dkogito.svg.folder.path=/home/kogito/data/svg
KOGITO_MANAGEMENT_CONSOLE_PROPS:
-Dkogito.svg.folder.path=/home/kogito/data/svg -Dquarkus.oidc.enabled=false
-Dkogito.security.auth.enabled=false
QUARKUS_HTTP_CORS_ORIGINS: "/.*/"
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]