This is an automated email from the ASF dual-hosted git repository.

danwatford pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ofbiz-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b6166f  Implemented: Restart policies for docker based demo sites 
(OFBIZ-12853)
4b6166f is described below

commit 4b6166f71021e3f3d4416e55ce3217c3b8ec1ab2
Author: Daniel Watford <dan...@watfordconsulting.com>
AuthorDate: Tue Sep 5 20:33:41 2023 +0100

    Implemented: Restart policies for docker based demo sites (OFBIZ-12853)
    
    Apply the 'unless-stopped' restart policy to the demo-trunk and
    demo-next docker based sites' configuration. This should restart
    the containers following a restart of the demo host.
    
    Thanks: Eugen Stan for the suggestion and configuration.
---
 demo-backup/ofbizdocker/home/ofbizdocker/demo-next/docker-compose.yml  | 3 ++-
 demo-backup/ofbizdocker/home/ofbizdocker/demo-trunk/docker-compose.yml | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/demo-backup/ofbizdocker/home/ofbizdocker/demo-next/docker-compose.yml 
b/demo-backup/ofbizdocker/home/ofbizdocker/demo-next/docker-compose.yml
index 7b37667..6a4e58f 100644
--- a/demo-backup/ofbizdocker/home/ofbizdocker/demo-next/docker-compose.yml
+++ b/demo-backup/ofbizdocker/home/ofbizdocker/demo-next/docker-compose.yml
@@ -6,7 +6,7 @@ services:
     mem_limit: 300M
     memswap_limit: 300M
     cpu_shares: 200
-    restart: "no"
+    restart: unless-stopped
     volumes:
       - ./postgres-initdb.d:/docker-entrypoint-initdb.d
     env_file:
@@ -18,6 +18,7 @@ services:
     mem_limit: 2400M
     memswap_limit: 2400M
     cpu_shares: 200
+    restart: unless-stopped
     ports:
       - 127.0.0.1:28009:8009
     volumes:
diff --git 
a/demo-backup/ofbizdocker/home/ofbizdocker/demo-trunk/docker-compose.yml 
b/demo-backup/ofbizdocker/home/ofbizdocker/demo-trunk/docker-compose.yml
index ed8923a..3fb6513 100644
--- a/demo-backup/ofbizdocker/home/ofbizdocker/demo-trunk/docker-compose.yml
+++ b/demo-backup/ofbizdocker/home/ofbizdocker/demo-trunk/docker-compose.yml
@@ -6,7 +6,7 @@ services:
     mem_limit: 300M
     memswap_limit: 300M
     cpu_shares: 200
-    restart: "no"
+    restart: unless-stopped
     volumes:
       - ./postgres-initdb.d:/docker-entrypoint-initdb.d
     env_file:
@@ -18,6 +18,7 @@ services:
     mem_limit: 2400M
     memswap_limit: 2400M
     cpu_shares: 200
+    restart: unless-stopped
     ports:
       - 127.0.0.1:8009:8009
     volumes:

Reply via email to