浏览代码

Don't restart containers if stopped (#376)

Tibor Leupold 2 年之前
父节点
当前提交
c7520702b6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docker-compose.yml

+ 2 - 2
docker-compose.yml

@@ -6,12 +6,12 @@ services:
       POSTGRES_DB: app_db
       POSTGRES_USER: app_user
       POSTGRES_PASSWORD: changeme
-    restart: always
+    restart: unless-stopped
     image: postgres:14.1
     expose:
       - '5432'
   redis:
-    restart: always
+    restart: unless-stopped
     image: redis:6.2
     expose:
       - '6379'