Enhance Docker Compose and NGINX configurations

- Added new environment variables for connection pooling in the .env file.
- Updated Docker Compose to ensure consistent naming conventions for containers and added health checks.
- Increased timeout settings in NGINX configuration for file uploads.
- Improved pgAdmin reverse proxy configuration to handle path rewrites.
- Added migration SQL file and updated helper documentation for database operations.
This commit is contained in:
2025-07-28 13:49:55 +00:00
parent 05f2f8aaa5
commit 005aedaba3
7 changed files with 462 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# pgAdmin reverse proxy (under subpath)
location /pgadmin4 {
proxy_pass http://pgAdmin4_Ui/;
proxy_pass http://pgadmin4-ui/;
proxy_set_header X-Script-Name /pgadmin4;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
@@ -12,4 +12,7 @@ location /pgadmin4 {
proxy_set_header X-Forwarded-Proto $forwarded_proto;
# End of headers
proxy_redirect off;
# ⚠️ Rewrite required to remove /pgadmin4 from the path
rewrite ^/pgadmin4(/.*)$ $1 break;
}

View File

@@ -140,6 +140,11 @@ http {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
# End of headers
# Increase timeout settings for file uploads
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
location /admin-api {
@@ -298,6 +303,11 @@ http {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
# End of headers
# Increase timeout settings for file uploads
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
location /admin-api {