From fad36d0cfdf75cc809e2509f9dc8c6e961295fa6 Mon Sep 17 00:00:00 2001 From: akou Date: Tue, 18 Jun 2024 23:33:27 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20Add=20notes=20for=20running=20Postgres?= =?UTF-8?q?=20Docker=20on=20Windows=20WSL2=20Ubuntu=20=E2=80=A6=20(#5373)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-compose.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 06fe90c488..e6269b9dfc 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -387,6 +387,9 @@ services: PGDATA: /var/lib/postgresql/data/pgdata volumes: - ./volumes/db/data:/var/lib/postgresql/data + # notice!: if you use windows-wsl2, postgres may not work properly due to the ntfs issue.you can use volumes to mount the data directory to the host. + # if you use the following config, you need to uncomment the volumes configuration below at the end of the file. + # - postgres:/var/lib/postgresql/data # uncomment to expose db(postgresql) port to host # ports: # - "5432:5432" @@ -524,6 +527,9 @@ services: ports: - "80:80" #- "443:443" +# notice: if you use windows-wsl2, postgres may not work properly due to the ntfs issue.you can use volumes to mount the data directory to the host. +# volumes: +#   postgres: networks: # create a network between sandbox, api and ssrf_proxy, and can not access outside. ssrf_proxy_network: