correctly bind and document postgress data folder bind (#298)

This commit is contained in:
Ulf Gebhardt 2025-08-12 10:10:19 +01:00 committed by GitHub
parent 54b8d3e4f3
commit d044143aa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data/

View File

@ -13,4 +13,13 @@ npx directus-sync push \
--directus-url http://localhost:8055 \
--directus-email admin@it4c.dev \
--directus-password admin123
```
```
## Access Data on local drive
In order to access the postgress data mounted to the local drive at `/data/database` you need to make it accessible (assuming you are not root):
```
sudo chmod 777 -R ./data/
```
This process is to be repeated whenever you restart the database docker container

View File

@ -9,10 +9,8 @@ services:
database:
image: postgis/postgis:13-master
# Required when running on platform other than amd64, like Apple M1/M2:
# platform: linux/amd64
volumes:
- ./data/database:/var/lib/postgresql/data
- ./data/database:/var/lib/postgresql/data:rw
environment:
POSTGRES_USER: 'directus'
POSTGRES_PASSWORD: 'directus'