Skip to content

Commit a51eb00

Browse files
committed
Remove dockerfile for nginx
1 parent b221402 commit a51eb00

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

metro-ai-suite/image-based-video-search/compose.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,10 @@ services:
229229
- "80:80"
230230
- "443:443"
231231
- "8554:8554"
232-
build:
233-
context: src/nginx
234-
dockerfile: Dockerfile
235232
volumes:
236-
- "./src/nginx/nginx.conf:/etc/nginx/nginx.conf:ro"
233+
- ./src/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
234+
- ./src/nginx/generate_certs.sh:/usr/local/bin/generate_certs.sh:ro
235+
entrypoint: ["/usr/local/bin/generate_certs.sh"]
237236
depends_on:
238237
- app
239238
environment:
@@ -242,6 +241,12 @@ services:
242241
- no_proxy=
243242
- NO_PROXY=
244243
restart: on-failure:5
244+
healthcheck:
245+
test: ["CMD", "curl", "-f", "http://localhost/nginx_healthz"]
246+
interval: 30s
247+
timeout: 10s
248+
retries: 3
249+
start_period: 10s
245250

246251
volumes:
247252
milvus-data:

metro-ai-suite/image-based-video-search/src/nginx/Dockerfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

metro-ai-suite/image-based-video-search/src/nginx/generate_certs.sh

100644100755
File mode changed.

metro-ai-suite/image-based-video-search/src/nginx/nginx.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,5 +235,11 @@ http {
235235
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
236236
proxy_set_header X-Forwarded-Proto $scheme;
237237
}
238+
239+
# Health check
240+
location /nginx_healthz {
241+
return 200 "ok\n";
242+
add_header Content-Type text/plain;
243+
}
238244
}
239245
}

0 commit comments

Comments
 (0)