Skip to content

Commit

Permalink
Updated configuring of mongo for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioKusek committed May 26, 2018
1 parent c503c95 commit 51866b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/eu/h2020/symbiote/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class AppConfig extends AbstractMongoConfiguration {
@Value("${rap.mongo.host}")
private String mongoHost;

@Value("${spring.data.mongodb.port}")
private int mongoPort;

@Override
protected String getDatabaseName() {
return databaseName;
Expand All @@ -35,7 +38,7 @@ protected String getDatabaseName() {
@SuppressWarnings("deprecation")
@Override
public Mongo mongo() throws Exception {
return new Mongo();
return new Mongo(mongoHost, mongoPort);
}

@Bean
Expand Down

0 comments on commit 51866b9

Please sign in to comment.