mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-12 23:36:00 +00:00
correctly bind and document postgress data folder bind (#298)
This commit is contained in:
parent
54b8d3e4f3
commit
d044143aa1
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
data/
|
||||
@ -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
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user