Skip to content

Commit eb04b46

Browse files
committed
Delphi configuration to talk to Labrinth
1 parent 4c8d0eb commit eb04b46

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

apps/labrinth/src/routes/internal/delphi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ async fn ingest_report(
133133
redis: web::Data<RedisPool>,
134134
web::Json(report): web::Json<DelphiReport>,
135135
) -> Result<HttpResponse, ApiError> {
136+
tracing::error!("!! INGEST !!");
137+
136138
if report.issues.is_empty() {
137139
info!("No issues found for file {}", report.url);
138140
return Ok(HttpResponse::NoContent().finish());

docker-compose.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,18 @@ services:
122122
ports:
123123
- '59999:59999'
124124
environment:
125-
LABRINTH_ENDPOINT: http://labrinth:8000/_internal/delphi/ingest
125+
LABRINTH_ENDPOINT: http://host.docker.internal:8000/_internal/delphi/ingest
126126
LABRINTH_ADMIN_KEY: feedbeef
127127
healthcheck:
128-
test: ['CMD', 'wget', '-q', '-O/dev/null', 'http://localhost:59999/health']
128+
test:
129+
['CMD', 'wget', '-q', '-O/dev/null', 'http://localhost:59999/health']
129130
interval: 3s
130131
timeout: 5s
131132
retries: 3
133+
extra_hosts:
134+
# Delphi must send a message on a webhook to our backend,
135+
# so it must have access to our local network
136+
- 'host.docker.internal:host-gateway'
132137
volumes:
133138
meilisearch-data:
134139
db-data:

0 commit comments

Comments
 (0)