refactor: add healthchecks to backend images

This commit is contained in:
Rainer Killinger
2024-02-08 11:51:18 +01:00
parent eef0829528
commit e92dd80b50
3 changed files with 5 additions and 0 deletions

View File

@@ -10,3 +10,5 @@ WORKDIR /app
EXPOSE 3000
ENTRYPOINT ["node", "app.js"]
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s --retries=12 CMD curl -s --fail --request POST --data '{}' --header 'Content-Type: application/json' http://localhost:3000/ >/dev/null || exit 1

View File

@@ -15,3 +15,5 @@ RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
USER elasticsearch
CMD ["/usr/share/elasticsearch/bin/elasticsearch"]
HEALTHCHECK --interval=10s --timeout=5s --start-period=60s --retries=12 CMD curl --fail -s http://localhost:9200/ >/dev/null || exit 1

View File

@@ -3,3 +3,4 @@ discovery.type: "single-node"
cluster.routing.allocation.disk.threshold_enabled: false
network.bind_host: 0.0.0.0
xpack.security.enabled: false
ingest.geoip.downloader.enabled: false