Update docker-compose/Registry/docker-compose.yml

This commit is contained in:
2025-04-04 02:45:27 +00:00
parent a784194048
commit ded6f2e868

View File

@@ -6,9 +6,14 @@ services:
ports:
# Map to a host port, e.g., 5000. Change if needed.
- "5435:5000"
environment:
REGISTRY_AUTH: htpasswd # Enable htpasswd auth
REGISTRY_AUTH_HTPASSWD_REALM: Local Registry # Realm name for login prompt
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd # Path *inside* the container
volumes:
# Persist registry data
- /3tbhdd/Registry/registry-data:/var/lib/registry
- /3tbhdd/Registry/auth:/auth
restart: always
networks:
# Use a common network if Gitea/Runner need to access it by name