add bind to drupal volume
This commit is contained in:
parent
0757f47966
commit
99e2863817
5 changed files with 15 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
|||
.env
|
||||
.git
|
||||
graphdb.zip
|
||||
graphdb.zip
|
||||
drupal-data
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
.env
|
||||
graphdb.zip
|
||||
graphdb.zip
|
||||
drupal-data
|
||||
|
|
@ -18,7 +18,8 @@
|
|||
* TripleStore from slim-buster
|
||||
## Start
|
||||
* Clone Repo with `git clone git@github.com:rnsrk/performance-drupal.git`.
|
||||
* Rename .example-env to .env and set environment varibles fpr postgres service.
|
||||
* Rename .example-env to .env and set environment varibles for postgres service.
|
||||
* Run `./prepare_volumes.sh` to create drupal-data directory and add absolute path to .env variable.
|
||||
* Get [GraphDB free standalone server](https://graphdb.ontotext.com/).
|
||||
* Copy zip-file to to /graphdb_context and rename it to "graphdb.zip".
|
||||
* Start containers with `docker compose up -d`.
|
||||
|
|
|
|||
|
|
@ -59,5 +59,9 @@ services:
|
|||
volumes:
|
||||
db-data:
|
||||
drupal-data:
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ${DRUPAL_DATA} #NOTE needs full path (~ or ./ doesn't work)
|
||||
o: bind
|
||||
graphdb-data:
|
||||
solr-data:
|
||||
|
|
|
|||
5
prepare_volumes.sh
Executable file
5
prepare_volumes.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir -p ./drupal-data
|
||||
|
||||
printf "\nDRUPAL_DATA = ${PWD}/drupal-data" >> ./.env
|
||||
Loading…
Add table
Add a link
Reference in a new issue