浏览代码

Push to compose 2.1

andryyy 8 年之前
父节点
当前提交
4856a6d931
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 11 11
      docker-compose.yml

+ 11 - 11
docker-compose.yml

@@ -1,4 +1,4 @@
-version: '2'
+version: '2.1'
 
 services:
     pdns-mailcow:
@@ -142,11 +142,11 @@ services:
         - DBUSER=${DBUSER}
         - DBPASS=${DBPASS}
       ports:
-        - "${IMAP_PORT:=143}:143"
-        - "${IMAPS_PORT:=993}:993"
-        - "${POP_PORT:=110}:110"
-        - "${POPS_PORT:=995}:995"
-        - "${SIEVE_PORT:=4190}:4190"
+        - "${IMAP_PORT:-143}:143"
+        - "${IMAPS_PORT:-993}:993"
+        - "${POP_PORT-110}:110"
+        - "${POPS_PORT:-995}:995"
+        - "${SIEVE_PORT:-4190}:4190"
       dns:
         - 172.22.1.254
       dns_search: mailcow-network
@@ -169,9 +169,9 @@ services:
         - DBUSER=${DBUSER}
         - DBPASS=${DBPASS}
       ports:
-        - "${SMTP_PORT:=25}:25"
-        - "${SMTPS_PORT:=465}:465"
-        - "${SUBMISSION_PORT:=587}:587"
+        - "${SMTP_PORT:-25}:25"
+        - "${SMTPS_PORT:-465}:465"
+        - "${SUBMISSION_PORT:-587}:587"
       restart: always
       hostname: ${MAILCOW_HOSTNAME}
       dns: 
@@ -204,7 +204,7 @@ services:
       image: nginx:mainline
       command: /bin/bash -c "envsubst < /etc/nginx/conf.d/listen.template > /etc/nginx/conf.d/listen.active && nginx -g 'daemon off;'"
       environment:
-        - HTTPS_PORT=${HTTPS_PORT:=443}
+        - HTTPS_PORT=${HTTPS_PORT:-443}
       volumes:
         - ./data/web:/web:ro
         - ./data/conf/rspamd/dynmaps:/dynmaps:ro
@@ -214,7 +214,7 @@ services:
         - 172.22.1.254
       dns_search: mailcow-network
       ports:
-        - "${HTTPS_PORT:=443}:${HTTPS_PORT:=443}"
+        - "${HTTPS_PORT:-443}:${HTTPS_PORT:-443}"
       restart: always
       networks:
         mailcow-network: