Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add diode-reconciler to ingress nginx config #174

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions diode-server/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@ services:
ingress-nginx:
image: nginx:latest
command: >
/bin/sh -c "echo 'upstream diode {
/bin/sh -c "echo 'upstream diode-ingester {
server diode-ingester:8081;
}

upstream diode-reconciler {
server diode-reconciler:8081;
}
server {
listen 80;
http2 on;
server_name localhost;
client_max_body_size 25m;
location /diode {
location /diode/diode.v1.IngesterService {
rewrite /diode/(.*) /$$1 break;
grpc_pass grpc://diode-ingester;
}
location /diode/diode.v1.ReconcilerService {
rewrite /diode/(.*) /$$1 break;
grpc_pass grpc://diode;
grpc_pass grpc://diode-reconciler;
}
}'
> /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
Expand All @@ -39,8 +45,7 @@ services:
- INGESTER_TO_RECONCILER_API_KEY=${INGESTER_TO_RECONCILER_API_KEY}
- SENTRY_DSN=${SENTRY_DSN}
restart: always
ports:
- "8081:8081"
ports: [ ]
depends_on:
- diode-redis
- diode-reconciler
Expand Down
Loading