- Use printf for proper YAML formatting - Add explicit config path to command - Add config directory creation step
22 lines
370 B
YAML
22 lines
370 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
registry:
|
|
build: .
|
|
container_name: registry
|
|
restart: unless-stopped
|
|
expose:
|
|
- "5000"
|
|
volumes:
|
|
- registry-data:/var/lib/registry
|
|
networks:
|
|
- registry-network
|
|
command: ["/etc/docker/registry/config.yml"]
|
|
|
|
networks:
|
|
registry-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
registry-data:
|
|
driver: local |