Browse Source

replace restart: always with restart: unless-stopped

Tom Jorquera 6 years ago
parent
commit
c9fede1b5e

+ 3 - 3
cloud/docker-compose.yml

@@ -7,7 +7,7 @@ networks:
 services:
   db:
     image: postgres:10-alpine
-    restart: always
+    restart: unless-stopped
     env_file:
       - .env
     volumes:
@@ -15,7 +15,7 @@ services:
 
   app:
     image: nextcloud:fpm-alpine
-    restart: always
+    restart: unless-stopped
     env_file:
       - .env
     volumes:
@@ -23,7 +23,7 @@ services:
 
   web:
     build: .
-    restart: always
+    restart: unless-stopped
     volumes:
       - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/app:/var/www/html:ro
     labels:

+ 1 - 1
homepage/docker-compose.yml

@@ -7,7 +7,7 @@ networks:
 services:
   app:
     build: .
-    restart: always
+    restart: unless-stopped
     labels:
       traefik.enable: "true"
       traefik.backend: "homepage"

+ 2 - 2
im/docker-compose.yml

@@ -3,7 +3,7 @@ version: '2'
 services:
   generate:
     image: silviof/docker-matrix
-    restart: always
+    restart: unless-stopped
     environment:
       - SERVER_NAME=im.oxyta.net
       - REPORT_STATS=no
@@ -12,7 +12,7 @@ services:
     command: generate
   app:
     image: silviof/docker-matrix
-    restart: always
+    restart: unless-stopped
     ports:
       - "8448:8448"
       - "3478:3478"

+ 1 - 1
matrix/docker-compose.yml

@@ -26,7 +26,7 @@ services:
 
   db:
     image: postgres:10-alpine
-    restart: always
+    restart: unless-stopped
     env_file:
       - .env
     environment:

+ 2 - 2
pad/docker-compose.yml

@@ -7,7 +7,7 @@ networks:
 services:
   db:
     image: postgres:10-alpine
-    restart: always
+    restart: unless-stopped
     env_file:
       - .env
     volumes:
@@ -15,7 +15,7 @@ services:
 
   app:
     build: .
-    restart: always
+    restart: unless-stopped
     env_file:
       - .env
     labels:

+ 3 - 3
peertube/docker-compose.yml

@@ -7,7 +7,7 @@ networks:
 services:
   app:
     image: chocobozzz/peertube:production-stretch
-    restart: always
+    restart: unless-stopped
     env_file:
       - .env
     environment:
@@ -25,7 +25,7 @@ services:
 
   db:
     image: postgres:10-alpine
-    restart: always
+    restart: unless-stopped
     env_file:
       - .env
     volumes:
@@ -33,6 +33,6 @@ services:
 
   redis:
     image: redis:4-alpine
-    restart: always
+    restart: unless-stopped
     volumes:
       - ${CHATONS_ROOT_DIR:-/srv/chatons}/peertube/redis:/data