Skip to content

Commit

Permalink
feat: add extra host for docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Notekunn committed Oct 1, 2023
1 parent d0322df commit 6e4289e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make/harbor.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
# quota_update_provider: redis # Or db
# extra_hosts:
# - localhost:127.0.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e4289e

Please sign in to comment.