diff --git a/.gitignore b/.gitignore index abba290..812a645 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ +.idea/ + **/*.override.yml .env diff --git a/database/adminer/adminer.yml b/database/adminer/adminer.yml index 552b7b5..e8184ee 100644 --- a/database/adminer/adminer.yml +++ b/database/adminer/adminer.yml @@ -1,17 +1,25 @@ services: + adminer_php: + restart: unless-stopped + image: lephare/adminerevo + volumes: + - "./database/adminer/index.php:/var/www/adminer/index.php:ro" + - "./database/adminer/plugins:/var/www/adminer/plugins:ro" + networks: + - private + adminer: - restart: always - image: adminer + restart: unless-stopped + image: lephare/apache:2.4 + volumes_from: + - adminer_php:ro labels: caddy: adminer.${DOCKER_HOST_SUFFIX:-local} caddy.tls: internal - caddy.reverse_proxy: "{{upstreams 8080}}" + caddy.reverse_proxy: "{{ upstreams }}" + environment: + DOCUMENT_ROOT: /var/www/adminer + PHP_CONTAINER_NAME: adminer_php networks: - public: - private: - healthcheck: - test: ["CMD", "php", "-r", "@file_get_contents('http://localhost:8080') or exit(1);"] - interval: 10s - timeout: 5s - retries: 5 - start_period: 30s + - public + - private diff --git a/database/adminer/index.php b/database/adminer/index.php new file mode 100644 index 0000000..0f55678 --- /dev/null +++ b/database/adminer/index.php @@ -0,0 +1,31 @@ +