From a0a1cda2e583cf0b6773e196cced7a005fadceea Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Thu, 20 Nov 2025 10:51:09 +0100 Subject: [PATCH] chore: change to include adminir auto-login --- docker-compose.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 060497000c..427782b08f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1131,6 +1131,16 @@ services: networks: - appwrite - gateway + environment: + - ADMINER_DESIGN=pepa-linha + - ADMINER_DEFAULT_SERVER=mariadb + - ADMINER_DEFAULT_USERNAME=root + - ADMINER_DEFAULT_PASSWORD=rootsecretpassword + - ADMINER_DEFAULT_DB=appwrite + configs: + - source: adminer-index.php + target: /var/www/html/index.php + mode: 0755 labels: - "traefik.enable=true" - "traefik.constraint-label-stack=appwrite" @@ -1188,6 +1198,26 @@ networks: runtimes: name: runtimes +configs: + redisinsight-connections.json: + content: | + [ + ] + + adminer-index.php: + content: | + $$_ENV['ADMINER_DEFAULT_SERVER'], + 'driver' => 'server', /* seems to autodetect the driver from server settings */ + 'username' => $$_ENV['ADMINER_DEFAULT_USERNAME'], + 'password' => $$_ENV['ADMINER_DEFAULT_PASSWORD'], + 'db' => $$_ENV['ADMINER_DEFAULT_DB'], + ]; + } + include './adminer.php'; + volumes: appwrite-mariadb: appwrite-redis: