41 lines
725 B
YAML
41 lines
725 B
YAML
|
|
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:
|