Skip to content

Commit

Permalink
add props + required files for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
TsimurSh committed Oct 23, 2024
1 parent 86768ad commit 47d2c48
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
Binary file removed app/resources/alerts.list
Binary file not shown.
9 changes: 6 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@

services:
service-alerts:
image: wkulesza/service-alerts-server:latest
volumes:
- ./app/resources/alerts.list:/app/resources/alerts.list
- alerts-persist:/app/alerts
- ./src/main/resources/application.yml:/app/resources/application.yml
- /tmp/service.alerts.pb:/app/service.alerts.pb
ports:
- "8888:8888"
- "9999:8888"
healthcheck:
test: "curl --fail --silent localhost:8888/actuator/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s

volumes:
alerts-persist:
Binary file added src/main/jib/app/alerts/alerts.list
Binary file not shown.
Empty file.
9 changes: 6 additions & 3 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ management:
enabled: false

alert-api:
security:
password: " "
user: " "
## Path to save protobuf file of all alerts
pb-file:
out-path: /var/goeuropa.pb
out-path: /app/service.alerts.pb
## Time-Zone
zone: "Europe/Warsaw"
## Enable filter out old alerts
actual-filter: false
## Paths to save/read back-up file
out-path: ./app/resources/alerts.list
in-path: ./app/resources/alerts.list
out-path: /app/alerts/alerts.list
in-path: /app/alerts/alerts.list

##open-api map paths
springdoc:
Expand Down

0 comments on commit 47d2c48

Please sign in to comment.