Browse Source

fix(server): Set dev restart policy to unless-stopped. (#3123)

Previously, if you'd shut down the `make-dev` command and restart
the docker daemon (say, on a system reboot), there would be 3 immich
containers already running.
Rohitt Vashishtha 2 năm trước cách đây
mục cha
commit
814030be77
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      docker/docker-compose.dev.yml

+ 3 - 3
docker/docker-compose.dev.yml

@@ -43,7 +43,7 @@ services:
       - NODE_ENV=development
       - NODE_ENV=development
     depends_on:
     depends_on:
       - database
       - database
-    restart: always
+    restart: unless-stopped
 
 
   immich-microservices:
   immich-microservices:
     container_name: immich_microservices
     container_name: immich_microservices
@@ -88,7 +88,7 @@ services:
     volumes:
     volumes:
       - ../web:/usr/src/app
       - ../web:/usr/src/app
       - /usr/src/app/node_modules
       - /usr/src/app/node_modules
-    restart: always
+    restart: unless-stopped
     depends_on:
     depends_on:
       - immich-server
       - immich-server
 
 
@@ -137,7 +137,7 @@ services:
     depends_on:
     depends_on:
       - immich-server
       - immich-server
       - immich-web
       - immich-web
-    restart: always
+    restart: unless-stopped
 
 
 volumes:
 volumes:
   pgdata:
   pgdata: