Skip to content
Snippets Groups Projects
Commit 2870b039 authored by jurgenhaas's avatar jurgenhaas
Browse files

#14 Provide an option to either use pma (default) or adminer

parent 4d509a3f
No related branches found
Tags v1.10.1
No related merge requests found
Pipeline #
...@@ -214,8 +214,8 @@ To overwrite the default settings for the Docker environment, add the relevant p ...@@ -214,8 +214,8 @@ To overwrite the default settings for the Docker environment, add the relevant p
"redis": { "redis": {
"version": "4.0" "version": "4.0"
}, },
"adminer": { "dbbrowser": {
"version": "4.3" "type": "pma"
}, },
"solr": { "solr": {
"enable": 0, "enable": 0,
...@@ -253,11 +253,11 @@ Other supported values for the PHP version are `5.3`, `5.6` and `7.1`. ...@@ -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`. 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 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`. Other supported values for the Solr version are `6.5`, `6.4`, `6.3`, `5.5` and `5.4`.
......
...@@ -239,8 +239,8 @@ class Handler { ...@@ -239,8 +239,8 @@ class Handler {
'redis' => [ 'redis' => [
'version' => '4.0', 'version' => '4.0',
], ],
'adminer' => [ 'dbbrowser' => [
'version' => '4.3', 'type' => 'pma',
], ],
'solr' => [ 'solr' => [
'enable' => 0, 'enable' => 0,
......
...@@ -87,15 +87,16 @@ services: ...@@ -87,15 +87,16 @@ services:
redis: redis:
image: 'wodby/redis:{{ redis.version }}' image: 'wodby/redis:{{ redis.version }}'
{% if dbbrowser.type == 'adminer' %}
adminer: adminer:
image: 'wodby/adminer:{{ adminer.version }}' image: 'wodby/adminer:{{ dbbrowser.version|default("4.3") }}'
environment: environment:
ADMINER_SALT: adminer-salt ADMINER_SALT: adminer-salt
labels: labels:
traefik.backend: '{{ projectname }}_adminer_1' traefik.backend: '{{ projectname }}_adminer_1'
traefik.port: '9000' traefik.port: '9000'
traefik.frontend.rule: 'Host:adminer.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:adminer.{{ projectname }}.docker.localhost'
{% elseif dbbrowser.type == 'pma' %}
pma: pma:
image: 'phpmyadmin/phpmyadmin' image: 'phpmyadmin/phpmyadmin'
environment: environment:
...@@ -108,6 +109,7 @@ services: ...@@ -108,6 +109,7 @@ services:
traefik.backend: '{{ projectname }}_pma_1' traefik.backend: '{{ projectname }}_pma_1'
traefik.port: '80' traefik.port: '80'
traefik.frontend.rule: 'Host:pma.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:pma.{{ projectname }}.docker.localhost'
{% endif %}
{% if solr.enable %} {% if solr.enable %}
solr: solr:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment