build: non-root USER, curl HEALTHCHECK, Nexus healthcheck in compose

This commit is contained in:
Marker689
2026-05-11 22:33:20 +03:00
parent 56786c7aef
commit 4834fd1621
2 changed files with 13 additions and 2 deletions

View File

@@ -32,6 +32,12 @@ services:
volumes:
- nexus-data:/nexus-data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8081/service/rest/v1/status"]
interval: 15s
timeout: 5s
start_period: 60s
retries: 10
nexus-setup:
image: alpine:3.21