Commit fffc2b83 authored by Evgeni Sladkovskii's avatar Evgeni Sladkovskii

final touches and docker compose config

parent 6e5603eb
......@@ -8,4 +8,4 @@ ENV SERVER_PORT=80
EXPOSE 80
CMD java $JAVA_OPTS -jar /app.jar
\ No newline at end of file
CMD java $JAVA_OPTS -jar /app.jar $APP_OPTS
\ No newline at end of file
spring:
application:
name: axondb-backup-client
main:
banner-mode: "off"
server:
port: 80
management:
endpoints:
web:
base-path: /manage
exposure:
include: health,loggers,info,metrics
logging:
level:
root: ERROR
nl.trifork: INFO
backup:
# second, minute, hour, day, month, weekday
cron: "0 0 * * * *"
eventsUrl: /v1/backup/filenames?type=Event
snapshotsUrl: /v1/backup/filenames?type=Snapshot
controlDbUrl: /v1/backup/createControlDbBackup
backupPath: /backup/
axonPath: /axon/
jobs:
- name: axondb1
axondbToken: dummy-token
axondbHost: http://axondb-1:8023/axondb
eventsPath: /events/default/
snapshotsPath: /events/default/
controlDbPath: /controldata/
......@@ -9,9 +9,17 @@ services:
- ./config/axondb.yml:/axondb.yml
- ./axon/axondb1/events:/events
- ./axon/axondb1/controldata:/controldata
# entrypoint: cat /axondb.yml
# environment:
# JAVA_OPTS: "--spring.config.location=/axondb.yml"
ports:
- "8023:8023"
- "8123:8123"
client:
image: axon-backup:latest
environment:
APP_OPTS: "--spring.config.location=/application.yaml"
volumes:
- ./config/application.yaml:/application.yaml
- ./axon/axondb1/events:/axon/axondb1/events
- ./axon/axondb1/controldata:/axon/axondb1/controldata
ports:
- "9080:80"
......@@ -46,7 +46,7 @@ public class FileUtils {
copyFile(file, tmpDestFile);
if (destinationFile.exists() && override) {
log.warn("Overriding file {}", destinationFilePath);
log.trace("Overriding file {}", destinationFilePath);
destinationFile.delete();
}
......
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