Skip to content

Commit

Permalink
backend
Browse files Browse the repository at this point in the history
  • Loading branch information
nicmesan committed Feb 20, 2017
1 parent fc43adc commit b4f9c96
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -17,6 +18,6 @@ db_karma:
MYSQL_USER: karma
MYSQL_PASSWORD: karma
ports:
- "3306:3306"
- "3307:3306"
volumes:
- ./:/app/
- ./:/app/
10 changes: 10 additions & 0 deletions server/target/log4j.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b4f9c96

Please sign in to comment.