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
|
.env
|
||||||
.git
|
.git
|
||||||
graphdb.zip
|
graphdb.zip
|
||||||
|
drupal-data
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
.env
|
.env
|
||||||
graphdb.zip
|
graphdb.zip
|
||||||
|
drupal-data
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
* TripleStore from slim-buster
|
* TripleStore from slim-buster
|
||||||
## Start
|
## Start
|
||||||
* Clone Repo with `git clone git@github.com:rnsrk/performance-drupal.git`.
|
* 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/).
|
* Get [GraphDB free standalone server](https://graphdb.ontotext.com/).
|
||||||
* Copy zip-file to to /graphdb_context and rename it to "graphdb.zip".
|
* Copy zip-file to to /graphdb_context and rename it to "graphdb.zip".
|
||||||
* Start containers with `docker compose up -d`.
|
* Start containers with `docker compose up -d`.
|
||||||
|
|
|
||||||
|
|
@ -59,5 +59,9 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
db-data:
|
||||||
drupal-data:
|
drupal-data:
|
||||||
|
driver_opts:
|
||||||
|
type: none
|
||||||
|
device: ${DRUPAL_DATA} #NOTE needs full path (~ or ./ doesn't work)
|
||||||
|
o: bind
|
||||||
graphdb-data:
|
graphdb-data:
|
||||||
solr-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