Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

restarting of containers took over by swarm

Michal Rutkaff21a241e60d
diff --git a/docker-compose.yml b/docker-compose.yml
index 07c99e14a..f20bfca3d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -61,7 +61,6 @@ services:
# map a Docker volume or host directory to access/store proxy configuration files
# and SSL certificates.
proxy:
- restart: always
extends:
file: profile/deploy.yml
service: proxy
@@ -77,7 +76,6 @@ services:
# console application static resources (HTML, JS, CSS), extensions, and other
# configuration files which were baked into the managers image.
manager:
- restart: always
extends:
file: profile/deploy.yml
service: manager
@@ -88,7 +86,6 @@ services:
- deployment-data:/deployment
keycloak:
- restart: always
extends:
file: profile/deploy.yml
service: keycloak
@@ -102,7 +99,6 @@ services:
# independently from your stack with with 'docker volume ls', 'docker volume rm', etc.
# Alternatively, you can store postgresql data in a directory on your host.
postgresql:
- restart: always
extends:
file: profile/deploy.yml
service: postgresql
diff --git a/manager/swarm.Dockerfile b/manager/swarm.Dockerfile
index 559e57e3c..f699ad90d 100644
--- a/manager/swarm.Dockerfile
+++ b/manager/swarm.Dockerfile
@@ -72,7 +72,7 @@ ENV MAP_SETTINGS_PATH /deployment/map/mapsettings.json
EXPOSE 8080
-HEALTHCHECK --interval=3s --timeout=3s --start-period=2s --retries=120 CMD curl --fail --silent http://localhost:8080 || exit 1
+HEALTHCHECK --interval=3s --timeout=3s --start-period=300s --retries=120 CMD curl --fail --silent http://localhost:8080 || exit 1
WORKDIR /opt/app