Add docker-compose/Registry/docker-compose.yml
This commit is contained in:
22
docker-compose/Registry/docker-compose.yml
Normal file
22
docker-compose/Registry/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:latest
|
||||||
|
container_name: local-docker-registry
|
||||||
|
ports:
|
||||||
|
# Map to a host port, e.g., 5000. Change if needed.
|
||||||
|
- "5435:5000"
|
||||||
|
volumes:
|
||||||
|
# Persist registry data
|
||||||
|
- /3tbhdd/Registry/registry-data:/var/lib/registry
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
# Use a common network if Gitea/Runner need to access it by name
|
||||||
|
- npm-crowdsec_crowdsec_proxy # Optional: Replace with your network name
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
registry-data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
npm-crowdsec_crowdsec_proxy: # Optional: Define if not already defined
|
||||||
|
external: true # Or true if defined elsewhere
|
||||||
Reference in New Issue
Block a user