diff --git a/make/harbor.yml.tmpl b/make/harbor.yml.tmpl index 7ab922bb81d3..085cb40209cb 100644 --- a/make/harbor.yml.tmpl +++ b/make/harbor.yml.tmpl @@ -303,4 +303,6 @@ cache: # # By redis will bring up some delay for quota usage updation for display, so only # # suggest switch provider to redis if you were ran into the db connections spike aroud # # the scenario of high concurrent pushing to same project, no improvment for other scenes. -# quota_update_provider: redis # Or db \ No newline at end of file +# quota_update_provider: redis # Or db +# extra_hosts: +# - localhost:127.0.0.1 \ No newline at end of file diff --git a/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja b/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja index 96a32af2454f..af9d6530c656 100644 --- a/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja +++ b/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja @@ -148,6 +148,12 @@ services: cap_add: - SETGID - SETUID + {% core.extra_hosts %} + extra_hosts: + {% for extra_host in core.extra_hosts %} + - {{extra_host}} + {% endfor %} + {% endif %} volumes: - {{data_volume}}/ca_download/:/etc/core/ca/:z - {{data_volume}}/:/data/:z