Created
May 6, 2025 18:21
-
-
Save amotl/0db40a5abc91cd9ae5a06051b7c215da to your computer and use it in GitHub Desktop.
Miniature rig for evaluating cratedb-cockpit on a non-root URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
nginx: | |
image: nginx:1.27 | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
ports: | |
- "8080:80" | |
restart: unless-stopped | |
cratedb-cockpit: | |
image: surister/cratedbaltadmin:latest | |
ports: | |
- "4201:80" | |
restart: unless-stopped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { worker_connections 1024; } | |
http { | |
upstream cratedb-cockpit { | |
server cratedb-cockpit:80; | |
} | |
server { | |
listen 80; | |
location /admin { | |
rewrite ^/admin/(.*)$ /$1 break; | |
proxy_pass http://cratedb-cockpit/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install
Usage
Start services
Navigate
http://localhost:4201/
http://localhost:8080/admin/