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