chore: Update README.md

This commit is contained in:
LRVT 2024-08-30 22:09:05 +02:00 committed by GitHub
parent 3747bf5220
commit 0185822826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,21 +7,13 @@
Before spawning up the Docker Compose stack you have to pre-supply an `initdb.sql` initialization file for the Postgresql database.
The file is provided in this repository but can also be created dynamically via:
````
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgresql > initdb.sql
````
Please go ahead and place this init file in the corresponding Docker Volume Bind Mount.
Please go ahead and create this init file in the corresponding Docker Volume bind mount.
````
# create volume dirs
mkdir -p /mnt/docker-volumes/guacamole/psql/init
# Option 1: move init file from this repo to the new location
mv initdb.sql /mnt/docker-volumes/guacamole/psql/init/.
# Option2: create it dynamically and place it to the new location
# create init file dynamically and place it to the new location
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgresql > /mnt/docker-volumes/guacamole/psql/init/initdb.sql
````