Mount db to volume (#6616)

- Do not bind externally
This commit is contained in:
Oliver 2024-03-02 10:49:20 +11:00 committed by GitHub
parent dc03b33c35
commit d39ab9c902
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ services:
expose:
- 5432/tcp
volumes:
- ../dev/database:/var/lib/postgresql/data:z
- inventreedatabase:/var/lib/postgresql/data:z
environment:
POSTGRES_DB: inventree
POSTGRES_USER: inventree_user
@ -19,7 +19,6 @@ services:
target: dev
args:
base_image: "mcr.microsoft.com/vscode/devcontainers/base:alpine-3.18"
workspace: "${containerWorkspaceFolder}"
data_dir: "dev"
volumes:
- ../:/home/inventree:z
@ -36,3 +35,6 @@ services:
depends_on:
- db
volumes:
inventreedatabase: