add bind to drupal volume

This commit is contained in:
Robert Nasarek 2022-10-10 13:06:10 +02:00
parent 0757f47966
commit 99e2863817
5 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,4 @@
.env .env
.git .git
graphdb.zip graphdb.zip
drupal-data

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
.env .env
graphdb.zip graphdb.zip
drupal-data

View file

@ -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`.

View file

@ -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
View file

@ -0,0 +1,5 @@
#!/bin/bash
mkdir -p ./drupal-data
printf "\nDRUPAL_DATA = ${PWD}/drupal-data" >> ./.env