Fix postgresql container (#6610)

- Linked volume caused permission issues
This commit is contained in:
Oliver 2024-03-01 16:53:42 +11:00 committed by GitHub
parent eb3d51f8a7
commit c8d6f2246b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@ services:
expose:
- 5432/tcp
volumes:
- ../dev:/var/lib/postgresql/data:z
- ../dev/database:/var/lib/postgresql/data:z
environment:
POSTGRES_DB: inventree
POSTGRES_USER: inventree_user

View File

@ -7,9 +7,13 @@ git config --global --add safe.directory /home/inventree
python3 -m venv /home/inventree/dev/venv --system-site-packages --upgrade-deps
. /home/inventree/dev/venv/bin/activate
# setup InvenTree server
# Run initial InvenTree server setup
invoke update -s
# Configure dev environment
invoke setup-dev
# Install required frontend packages
invoke frontend-install
# remove existing gitconfig created by "Avoiding Dubious Ownership" step