100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Configure uninterupted updates with rollback
Michal Rutka8553b509e1ae
diff --git a/swarm/aws-swarm-docker-compose.yml b/swarm/aws-swarm-docker-compose.ymlindex 3d2d1cd9d..5d226e7ea 100644--- a/swarm/aws-swarm-docker-compose.yml+++ b/swarm/aws-swarm-docker-compose.yml@@ -44,6 +44,8 @@ services:networks:- private- public+ depends_on:+ - keycloakenvironment:@@ -132,6 +134,13 @@ services:ports:- "8080:8080"+ deploy:+ replicas: 1+ # Configure uninterupted updates with rollback+ update_config:+ failure_action: rollback+ order: start-first+keycloak:# Image will be pulled when using the `docker-compose pull` command or `docker-compose up --no-build`@@ -139,6 +148,8 @@ services:networks:- public- private+ depends_on:+ - postgresqlenvironment:@@ -178,6 +189,13 @@ services:ports:- "8081:8080"+ deploy:+ replicas: 1+ # Configure uninterupted updates with rollback+ update_config:+ failure_action: rollback+ order: start-first+# This configuration stores postgresql data in a Docker volume. You manage this volume# 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.@@ -206,3 +224,10 @@ services:volumes:- postgresql-data:/deployment++ deploy:+ replicas: 1+ # Configure uninterupted updates with rollback+ update_config:+ failure_action: rollback+ order: start-first\ No newline at end of filediff --git a/swarm/swarm-docker-compose.yml b/swarm/swarm-docker-compose.ymlindex fc771835e..cc4fbf109 100644--- a/swarm/swarm-docker-compose.yml+++ b/swarm/swarm-docker-compose.yml@@ -45,7 +45,8 @@ services:networks:- public- private-+ depends_on:+ - managerenvironment:TZ: Europe/AmsterdamDOMAINNAME: ${DOMAINNAME:-localhost}@@ -85,6 +86,18 @@ services:# Override the haproxy.cfg with custom file# -${MY_PROXY_CONFIG_FILE}:/etc/haproxy/haproxy.cfg+ deploy:+ replicas: 1+ restart_policy:+ # Have a chance to look inside log before restarts to prevent hitting+ # letsencrypt limit of nuber issued certificates per week, which is 5+ delay: 10s+ window: 30s+ # Configure uninterupted updates with rollback+ update_config:+ failure_action: rollback+ order: start-first+# This configuration uses the manager's deployment-specific data such as map tiles,# console application static resources (HTML, JS, CSS), extensions, and other# configuration files which were baked into the managers image.@@ -93,7 +106,8 @@ services:image: openremote/manager-swarm:${DATE_TAG:-latest}networks:- private-+ depends_on:+ - keycloakenvironment:# It is important that all services have the same timezone and are time synchronized.@@ -180,8 +194,12 @@ services:-XX:NativeMemoryTracking=summary-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/javadump.core.hprof'- ports:- - "8080:8080"+ deploy:+ replicas: 1+ # Configure uninterupted updates with rollback+ update_config:+ failure_action: rollback+ order: start-firstkeycloak:@@ -190,6 +208,8 @@ services:networks:- public- private+ depends_on:+ - postgresqlenvironment:@@ -229,6 +249,13 @@ services:ports:- "8081:8080"+ deploy:+ replicas: 1+ # Configure uninterupted updates with rollback+ update_config:+ failure_action: rollback+ order: start-first+# This configuration stores postgresql data in a Docker volume. You manage this volume# 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.@@ -257,3 +284,10 @@ services:volumes:- postgresql-data:/deployment++ deploy:+ replicas: 1+ # Configure uninterupted updates with rollback+ update_config:+ failure_action: rollback+ order: start-first