浏览代码

Docker: torodb-postgresql has now shared volumes of /etc/localtime and /etc/timezone too

Martin Filser 3 年之前
父节点
当前提交
f9c9f2a453
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      torodb-postgresql/docker-compose.yml

+ 6 - 0
torodb-postgresql/docker-compose.yml

@@ -108,6 +108,9 @@ services:
       - TORODB_BACKEND_USER=wekan
       - TORODB_BACKEND_USER=wekan
       - TORODB_BACKEND_PASSWORD=wekan
       - TORODB_BACKEND_PASSWORD=wekan
       - DEBUG
       - DEBUG
+    volumes:
+      - /etc/localtime:/etc/localtime:ro
+      - /etc/timezone:/etc/timezone:ro
   postgres:
   postgres:
     image: quay.io/wekan/postgres:9.6
     image: quay.io/wekan/postgres:9.6
     networks:
     networks:
@@ -116,6 +119,9 @@ services:
       - POSTGRES_PASSWORD=wekan
       - POSTGRES_PASSWORD=wekan
     ports:
     ports:
       - "5432:5432"
       - "5432:5432"
+    volumes:
+      - /etc/localtime:/etc/localtime:ro
+      - /etc/timezone:/etc/timezone:ro
   mongodb:
   mongodb:
     image: mongo:3.2
     image: mongo:3.2
     networks:
     networks: