Added phpmyadmin

This commit is contained in:
2025-01-26 19:47:01 +01:00
parent a474511e27
commit ec5768f3d4
5 changed files with 48 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
---
- name: "include docker/compose/common.yml"
include_tasks: docker/compose/common.yml
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
- name: add docker-compose.yml
template:
src: "docker-compose.yml.j2"
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
notify: docker compose project setup

View File

@@ -0,0 +1,17 @@
services:
application:
logging:
driver: journald
image: phpmyadmin/phpmyadmin:{{phpmyadmin_version}}
container_name: phpmyadmin
environment:
PMA_HOST: central-mariadb
PMA_USER: root
PMA_PASSWORD: "{{central_mariadb_root_password}}"
restart: {{docker_restart_policy}}
ports:
- "127.0.0.1:{{http_port}}:80"
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
{% include 'templates/docker/container/networks.yml.j2' %}
{% include 'templates/docker/compose/networks.yml.j2' %}

View File

@@ -0,0 +1,2 @@
docker_compose_project_name: "phpmyadmin"
database_type: "mariadb"