code/autoregistry/compose.yaml

41 lines
725 B
YAML
Raw Normal View History

2024-08-31 17:58:24 +00:00
name: registry
services:
backend:
image: registry:2.8.3
restart: always
volumes:
- registry:/var/lib/registry
# only for testing.
#ports:
# for debugging only, not requireed to be accessioble
# - 4999:5000
frontend:
image: regproxy
build:
context: proxy
restart: always
#network_mode: host
command:
- localhost
- "5000"
- http://backend:5000
ports:
# run images with localhost:5001
- 5000:5000
volumes:
- //var/run:/var/run
# an image with a lot of big layers to verify the mechanism.
bigmf:
build:
context: bigmf
image: localhost:5000/bigmf
profiles:
- testing
volumes:
registry: