Browse Source

Fix restart policy

ghorsington 3 years ago
parent
commit
7f9fa7c2c1
1 changed files with 5 additions and 5 deletions
  1. 5 5
      docker-compose.yml

+ 5 - 5
docker-compose.yml

@@ -6,7 +6,7 @@ services:
     build:
       context: ./
       dockerfile: ./bot/Dockerfile
-    restart: always
+    restart: unless-stopped
     depends_on:
       - db
       - facedetect
@@ -30,14 +30,14 @@ services:
     build:
       context: ./
       dockerfile: ./facedetect/Dockerfile
-    restart: always
+    restart: unless-stopped
 
   web:
     image: noctbot_web
     build:
       context: ./
       dockerfile: ./web/Dockerfile
-    restart: always
+    restart: unless-stopped
     depends_on:
       - db
     env_file:
@@ -53,7 +53,7 @@ services:
 
   db:
     image: postgres
-    restart: always
+    restart: unless-stopped
     env_file:
       - ./db.env
     environment: 
@@ -64,7 +64,7 @@ services:
 
   adminer:
     image: adminer
-    restart: always
+    restart: unless-stopped
     ports:
       - 3030:8080