version: '2'
services:
nginx:
image: daocloud.io/yiduzui/nginx-extras
container_name: i-proxy
ports:
- 5443:443
links:
- registry:registry
volumes:
- ./auth:/etc/nginx/conf.d
command:
- [service, nginx, start]
registry:
image: registry:2
container_name: i-registry
ports:
- 127.0.0.1:5000:5000
volumes:
- $PWD./idata:/var/lib/registry
Wow, it’s amazing to play like this. In theory, the nginx container would have hung up when the service was started.