diff --git a/test/templates/message-broker-with-entities-2nd-call/src/main/docker/app.yml b/test/templates/message-broker-with-entities-2nd-call/src/main/docker/app.yml new file mode 100644 index 0000000..7dab7a9 --- /dev/null +++ b/test/templates/message-broker-with-entities-2nd-call/src/main/docker/app.yml @@ -0,0 +1,28 @@ +version: '2' +services: + message_broker_with_entities-app: + image: message_broker_with_entities + environment: + - _JAVA_OPTIONS=-Xmx512m -Xms256m + - SPRING_PROFILES_ACTIVE=prod,swagger + - MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true + - SPRING_DATASOURCE_URL=jdbc:mysql://message_broker_with_entities-mysql:3306/message_broker_with_entities?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true + - JHIPSTER_SLEEP=30 # gives time for other services to boot before the application + - KAFKA_BOOTSTRAP_SERVERS=kafka:29092 + ports: + - 8080:8080 + message_broker_with_entities-mysql: + extends: + file: mysql.yml + service: message_broker_with_entities-mysql + kafka: + extends: + file: kafka.yml + service: kafka + environment: + - KAFKA_ADVERTISED_HOST_NAME=kafka + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092 + zookeeper: + extends: + file: kafka.yml + service: zookeeper