Moved web-app-phpmyadmin to new structure

This commit is contained in:
2025-07-17 08:24:07 +02:00
parent 0b8d2e0b40
commit 90bc52632e
5 changed files with 15 additions and 9 deletions

View File

@@ -1,4 +1,3 @@
version: "latest" # Use the latest phpmyadmin version
autologin: false # This is a high security risk. Just activate this option if you know what you're doing
oauth2_proxy:
port: "80"
@@ -6,7 +5,7 @@ oauth2_proxy:
features:
matomo: true
css: false
port-ui-desktop: false # Opens itself in a new window, when it's loaded in an iframe.
port-ui-desktop: false # Opens itself in a new window, when it's loaded in an iframe.
# it's anyhow not so enduser relevant, so it can be kept like this
central_database: true
oauth2: true
@@ -24,3 +23,7 @@ docker:
services:
database:
enabled: true
phpmyadmin:
version: "latest" # Use the latest phpmyadmin version
name: "phpmyadmin"
image: phpmyadmin/phpmyadmin

View File

@@ -2,8 +2,8 @@
application:
{% set container_port = 80 %}
image: phpmyadmin/phpmyadmin:{{applications.phpmyadmin.version}}
container_name: phpmyadmin
image: "{{ phpmyadmin_image }}:{{ phpmyadmin_version }}"
container_name: "{{ phpmyadmin_name }}"
{% include 'roles/docker-container/templates/base.yml.j2' %}
ports:
- "127.0.0.1:{{ports.localhost.http[application_id]}}:{{ container_port }}"

View File

@@ -1,3 +1,6 @@
application_id: "phpmyadmin"
application_id: "web-app-phpmyadmin"
database_type: "mariadb"
database_host: "{{ applications | get_app_conf('svc-db-mariadb', 'docker.services.mariadb.name', True) if applications | get_app_conf(application_id, 'features.central_database', False)}}"
database_host: "{{ applications | get_app_conf('svc-db-mariadb', 'docker.services.mariadb.name', True) if applications | get_app_conf(application_id, 'features.central_database', False)}}"
phpmyadmin_version: "{{ applications | get_app_conf(application_id, 'docker.services.phpmyadmin.version', True) }}"
phpmyadmin_image: "{{ applications | get_app_conf(application_id, 'docker.services.phpmyadmin.image', True) }}"
phpmyadmin_name: "{{ applications | get_app_conf(application_id, 'docker.services.phpmyadmin.name', True) }}"