Commit 0086c51a authored by casa1's avatar casa1
Browse files

new-changes

1 merge request!1Development
Showing with 44 additions and 0 deletions
+44 -0
Dockerfile 0 → 100644
FROM openjdk:11
MAINTAINER haridas <haridas.kakunje@tarento.com>
ADD target/comment-hub-0.0.1-SNAPSHOT.jar comment-hub-0.0.1-SNAPSHOT.jar
#ADD public/emails emails
ENTRYPOINT ["java", "-jar", "/comment-hub-0.0.1-SNAPSHOT.jar"]
EXPOSE 8099
version: '3'
services:
comment-hub:
image: comment-hub-dev:1.10
build:
context: .
ports:
- '8099:8099'
server.port=8099
# PostgreSQL configuration
spring.datasource.url=jdbc:postgresql://10.0.2.18:5432/commentdb
spring.datasource.username=postgres
spring.datasource.password=yoursupersecret
spring.datasource.driver-class-name=org.postgresql.Driver
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=update
#------------------secretes------------#
jwt.secret.key=comment-hub
#----------------------------------Redis -----------------------------
spring.redis.host=10.0.2.18
spring.redis.port=6379
#spring.redis.password=KZ9u%Z&mki4&p35
# 14 days in second 14 * 24 * 60 * 60
redis.ttl=86400
#----------------------------Configure Logback pattern -----------------------
logging.pattern.console=%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
# Log to console and file
logging.file=logs/commentHub.log
\ No newline at end of file
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment