From b4f9c96b491874b42c8711216860300c51c24f8c Mon Sep 17 00:00:00 2001 From: nicmesa Date: Mon, 20 Feb 2017 01:06:11 -0300 Subject: [PATCH] backend --- docker-compose.yml | 9 +++++---- server/target/log4j.properties | 10 ++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 server/target/log4j.properties diff --git a/docker-compose.yml b/docker-compose.yml index b925538..6330f2b 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,12 @@ karma: build: . + command: java -jar server/target/server-0.0.1-jar-with-dependencies.jar ports: - - "3000:3000" + - "8081:8081" volumes: - ./:/app/karma links: - - db_karma:db + - db_karma:db_karma tty: true @@ -17,6 +18,6 @@ db_karma: MYSQL_USER: karma MYSQL_PASSWORD: karma ports: - - "3306:3306" + - "3307:3306" volumes: - - ./:/app/ \ No newline at end of file + - ./:/app/ \ No newline at end of file diff --git a/server/target/log4j.properties b/server/target/log4j.properties new file mode 100644 index 0000000..474e8c9 --- /dev/null +++ b/server/target/log4j.properties @@ -0,0 +1,10 @@ +log4j.rootLogger= info,file + +# Redirect log messages to a log file, support file rolling. +log4j.appender.file=org.apache.log4j.RollingFileAppender +log4j.appender.file.File=logs/log4j-application.log +log4j.appender.file.Append=true +log4j.appender.file.MaxFileSize=5MB +log4j.appender.file.MaxBackupIndex=10 +log4j.appender.file.layout=org.apache.log4j.PatternLayout +log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n