瀏覽代碼

compose: add depends on for postfix-tlspol

DerLinkman 1 周之前
父節點
當前提交
29e28b47ed
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docker-compose.yml

+ 2 - 2
docker-compose.yml

@@ -344,6 +344,8 @@ services:
           condition: service_started
           condition: service_started
         unbound-mailcow:
         unbound-mailcow:
           condition: service_healthy
           condition: service_healthy
+        postfix-tlspol-mailcow:
+          condition: service_started
       volumes:
       volumes:
         - ./data/hooks/postfix:/hooks:Z
         - ./data/hooks/postfix:/hooks:Z
         - ./data/conf/postfix:/opt/postfix/conf:z
         - ./data/conf/postfix:/opt/postfix/conf:z
@@ -383,8 +385,6 @@ services:
       depends_on:
       depends_on:
         unbound-mailcow:
         unbound-mailcow:
           condition: service_healthy
           condition: service_healthy
-        postfix-mailcow:
-          condition: service_started
       volumes:
       volumes:
         - postfix-tlspol-vol-1:/var/lib/postfix-tlspol
         - postfix-tlspol-vol-1:/var/lib/postfix-tlspol
       environment:
       environment: