Skip to content
Snippets Groups Projects
Commit 5a12e986 authored by Anthony Bretaudeau's avatar Anthony Bretaudeau
Browse files

make db host configurable

parent 9fb89610
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,18 @@ ENABLE_MEMCACHE: 0 # To disable caching using memcache (requires ENABLE_DRUPAL_C
If ENABLE_DRUPAL_CACHE is enabled but ENABLE_MEMCACHE is not, Drupal will cache data into database.
If both ENABLE_DRUPAL_CACHE and ENABLE_MEMCACHE are enabled, Drupal will cache data using memcache.
## Database connection
Some environment variables can be defined to connect to the postgresql database:
```
DB_HOST='postgres'
DB_PORT='5432'
DB_NAME='postgres'
DB_USER='postgres'
DB_PASS='postgres'
```
## Customizing the Image
To build a derivative image from this, it should be as simple as writing a Dockerfile which builds off of this image.
......
......@@ -17,7 +17,7 @@ function run_scripts () {
### auto-configure database from environment-variables
DB_DRIVER=pgsql
DB_HOST=postgres
: ${DB_HOST:='postgres'}
: ${DB_PORT:='5432'}
: ${DB_NAME:='postgres'}
: ${DB_USER:='postgres'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment