healthcheck added but not working for both containers

This commit is contained in:
hamza rahmani 2025-01-14 12:01:43 +01:00
parent c52e491b63
commit e54e644d43

View File

@ -21,6 +21,12 @@ services:
- CATALOG_ELEMENTS_LIMIT=1000
networks:
- registry-ui-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
registry:
image: registry:2.8.2
@ -38,6 +44,12 @@ services:
- ./registry/config:/etc/docker/registry
networks:
- registry-ui-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/v2/_catalog"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
registry-ui-net:
registry-ui-net: