Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
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
Composer
plugin
Docker for Drupal
Commits
2870b039
There was a problem fetching the pipeline summary.
Commit
2870b039
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#14
Provide an option to either use pma (default) or adminer
parent
4d509a3f
No related branches found
Branches containing commit
Tags
v1.7.0
Tags containing commit
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-4
4 additions, 4 deletions
README.md
src/Handler.php
+2
-2
2 additions, 2 deletions
src/Handler.php
templates/docker-compose.yml.twig
+4
-2
4 additions, 2 deletions
templates/docker-compose.yml.twig
with
10 additions
and
8 deletions
README.md
+
4
−
4
View file @
2870b039
...
...
@@ -214,8 +214,8 @@ To overwrite the default settings for the Docker environment, add the relevant p
"redis"
:
{
"version"
:
"4.0"
},
"
admin
er"
:
{
"
version
"
:
"
4.3
"
"
dbbrows
er"
:
{
"
type
"
:
"
pma
"
},
"solr"
:
{
"enable"
:
0
,
...
...
@@ -253,11 +253,11 @@ Other supported values for the PHP version are `5.3`, `5.6` and `7.1`.
Other supported value for the webserver type is
`apache`
.
Supported versions for
`nginx`
:
`1.13`
,
`1.12`
,
`1.10`
Supported versions for
`nginx`
:
`1.13`
,
`1.12`
,
`1.10`
.
Other supported value for the Redis version is
`3.2`
.
Other supported value for the
Adminer version is
`4.2`
.
Other supported value for the
dbbrowser type is
`adminer`
. In that case you should also add a version element with either
`4.3`
or
`4.2`
.
Other supported values for the Solr version are
`6.5`
,
`6.4`
,
`6.3`
,
`5.5`
and
`5.4`
.
...
...
This diff is collapsed.
Click to expand it.
src/Handler.php
+
2
−
2
View file @
2870b039
...
...
@@ -239,8 +239,8 @@ class Handler {
'redis'
=>
[
'version'
=>
'4.0'
,
],
'
admin
er'
=>
[
'
version
'
=>
'
4.3
'
,
'
dbbrows
er'
=>
[
'
type
'
=>
'
pma
'
,
],
'solr'
=>
[
'enable'
=>
0
,
...
...
This diff is collapsed.
Click to expand it.
templates/docker-compose.yml.twig
+
4
−
2
View file @
2870b039
...
...
@@ -87,15 +87,16 @@ services:
redis:
image: 'wodby/redis:
{{
redis.version
}}
'
{%
if
dbbrowser.type
==
'adminer'
%}
adminer:
image: 'wodby/adminer:
{{
admin
er.version
}}
'
image: 'wodby/adminer:
{{
dbbrows
er.version
|
default
(
"4.3"
)
}}
'
environment:
ADMINER_SALT: adminer-salt
labels:
traefik.backend: '
{{
projectname
}}
_adminer_1'
traefik.port: '9000'
traefik.frontend.rule: 'Host:adminer.
{{
projectname
}}
.docker.localhost'
{%
elseif
dbbrowser.type
==
'pma'
%}
pma:
image: 'phpmyadmin/phpmyadmin'
environment:
...
...
@@ -108,6 +109,7 @@ services:
traefik.backend: '
{{
projectname
}}
_pma_1'
traefik.port: '80'
traefik.frontend.rule: 'Host:pma.
{{
projectname
}}
.docker.localhost'
{%
endif
%}
{%
if
solr.enable
%}
solr:
...
...
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