proxy: image: lzrbear/docker-apache2-ubuntu:16.04 restart: always container_name: proxy ports: - 5080:8080 - 5043:443 links: - registry:registry volumes: - "/var/lab/registry/etc/apache2/domain.crt:/usr/local/apache2/conf/domain.crt" - "/var/lab/registry/etc/apache2/domain.key:/usr/local/apache2/conf/domain.key" - "/var/lab/registry/etc/apache2/httpd.groups:/usr/local/apache2/conf/httpd.groups" - "/var/lab/registry/etc/apache2/httpd.htpasswd:/usr/local/apache2/conf/httpd.htpasswd" - "/var/lab/registry/modules/apache2.conf:/etc/apache2/apache2.conf" - "/var/lab/registry/modules/000-default.conf:/etc/apache2/sites-enabled/000-default.conf" - "/var/lab/registry/modules/ports.conf:/etc/apache2/ports.conf" - "/var/lab/registry/modules/headers.load:/etc/apache2/mods-enabled/headers.load" - "/var/lab/registry/modules/mod_ssl.load:/etc/apache2/mods-enabled/mod_ssl.load" - "/var/lab/registry/modules/mod_ssl.conf:/etc/apache2/mods-enabled/mod_ssl.conf" - "/var/lab/registry/modules/authz_groupfile.load:/etc/apache2/mods-enabled/authz_groupfile.load" - "/var/lab/registry/modules/proxy.load:/etc/apache2/mods-enabled/proxy.load" - "/var/lab/registry/modules/proxy_http.load:/etc/apache2/mods-enabled/proxy_http.load" - "/var/lab/registry/modules/authn_file.load:/etc/apache2/mods-enabled/authn_file.load" - "/var/lab/registry/modules/authn_core.load:/etc/apache2/mods-enabled/authn_core.load" - "/var/lab/registry/modules/authz_user.load:/etc/apache2/mods-enabled/authz_user.load" - "/var/lab/registry/modules/authz_core.load:/etc/apache2/mods-enabled/authz_core.load" - "/var/lab/registry/modules/auth_basic.load:/etc/apache2/mods-enabled/auth_basic.load" - "/var/lab/registry/modules/access_compat.load:/etc/apache2/mods-enabled/access_compat.load" registry: image: registry:2 restart: always container_name: registry ports: - 5000:5000 volumes: - "/var/lab/registry-data:/var/lib/registry"