Closed yareg-com closed 3 years ago
I use adminer:fastcgi with caddy, both in docker containers and can't figure out how to properly connect adminer.css.
Route the request to adminer.css
to the index.php
in the container. The script specifically contains logic to serve the adminer.css
if the index.php
is executed while the address bar says adminer.css
:
For nginx I use the following config:
location ~ ^/adminer(/.*$|$) {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/html/index.php; # Hardcoded index.php here
fastcgi_pass adminer:9000;
}
I use adminer:fastcgi with caddy, both in docker containers and can't figure out how to properly connect adminer.css. The only way I managed to get it working is via volume but in that case the contents of the volume is not updated automatically when the adminer container is upgraded. What is the best practice to achieve this?
Here's my Caddyfile snippet:
Trying to solve the problem using volume I did like this:
Caddyfile:
docker-compose.yml:
Thanks in advance!