expose rabbitmq
This commit is contained in:
@@ -9,6 +9,8 @@ services:
|
|||||||
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST}
|
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST}
|
||||||
volumes:
|
volumes:
|
||||||
- rabbitmqdata:/var/lib/rabbitmq
|
- rabbitmqdata:/var/lib/rabbitmq
|
||||||
|
ports:
|
||||||
|
- "15672:15672"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|||||||
@@ -20,6 +20,14 @@ server {
|
|||||||
|
|
||||||
client_max_body_size 10M;
|
client_max_body_size 10M;
|
||||||
|
|
||||||
|
location /rabbitmq/ {
|
||||||
|
proxy_pass http://host.docker.internal:15672/;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://host.docker.internal:8090;
|
proxy_pass http://host.docker.internal:8090;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user