Commit 6a1656fd authored by Evgeni Sladkovskii's avatar Evgeni Sladkovskii

docker related config

parent ffb507ef
spring:
profiles: standalone
datasource:
url: jdbc:h2:/controldata/axondb-controldb
axoniq:
axondb:
domain: axondb
controldb-backup-location: /controldata
controldb-backup-location: /controldata/
file:
storage: /events
max-segment-size: 50MB
\ No newline at end of file
max-segment-size: 50000000
server:
context-path: /axondb
\ No newline at end of file
......@@ -6,11 +6,12 @@ services:
image: eu.gcr.io/tradingengine-194513/blox-infra/axondb:1.3.9-1
hostname: axondb-1
volumes:
- ./config/axondb.yaml:/axondb.yaml
- ./config/axondb.yml:/axondb.yml
- ./axon/axondb1/events:/events
- ./axon/axondb1/controldata:/controldata
environment:
JAVA_OPTS: "--spring.config.location=/axondb.yaml"
# entrypoint: cat /axondb.yml
# environment:
# JAVA_OPTS: "--spring.config.location=/axondb.yml"
ports:
- "8023:8023"
- "8123:8123"
......@@ -39,7 +39,10 @@ public class AxonDbRestClient {
}
public String createControlDbDump(String host) {
ResponseEntity<String> dbDumpPath = restTemplate.exchange(dbDumpUrl(host), POST, reqEntity(), String.class);
String url = dbDumpUrl(host);
log.trace("Calling for controldb backup on {}", url);
ResponseEntity<String> dbDumpPath = restTemplate.exchange(url, POST, reqEntity(), String.class);
log.trace("Controldb backup created on {}", dbDumpPath.getBody());
return dbDumpPath.getBody();
}
......@@ -52,7 +55,7 @@ public class AxonDbRestClient {
}
private String dbDumpUrl(String host) {
return config.getJobs().get(0).getAxondbHost() + config.getControlDbUrl();
return host + config.getControlDbUrl();
}
private HttpEntity reqEntity() {
......
Markdown is supported
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