Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Docker Tripal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
applied-bioinformatics
Docker Tripal
Commits
5a12e986
Commit
5a12e986
authored
5 years ago
by
Anthony Bretaudeau
Browse files
Options
Downloads
Patches
Plain Diff
make db host configurable
parent
9fb89610
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+12
-0
12 additions, 0 deletions
README.md
entrypoint.sh
+1
-1
1 addition, 1 deletion
entrypoint.sh
with
13 additions
and
1 deletion
README.md
+
12
−
0
View file @
5a12e986
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
entrypoint.sh
+
1
−
1
View file @
5a12e986
...
...
@@ -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'
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment