mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-19 07:07:42 +01:00
Fix migration script to support exeternal db
migrated config file will contains seperated db configuration Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
parent
766d5ee017
commit
c1c48ea757
@ -18,6 +18,11 @@ keys = [
|
|||||||
'db_password',
|
'db_password',
|
||||||
'db_port',
|
'db_port',
|
||||||
'db_user',
|
'db_user',
|
||||||
|
'clair_db_host',
|
||||||
|
'clair_db_password',
|
||||||
|
'clair_db_port',
|
||||||
|
'clair_db_username',
|
||||||
|
'clair_db',
|
||||||
'redis_host',
|
'redis_host',
|
||||||
'redis_port',
|
'redis_port',
|
||||||
'redis_password',
|
'redis_password',
|
||||||
|
@ -84,11 +84,34 @@ _version: 1.8.0
|
|||||||
# Uncomment external_database if using external database. And the password will replace the the password setting in database.
|
# Uncomment external_database if using external database. And the password will replace the the password setting in database.
|
||||||
# And currently ontly support postgres.
|
# And currently ontly support postgres.
|
||||||
external_database:
|
external_database:
|
||||||
host: {{ db_host }}
|
harbor:
|
||||||
port: {{ db_port }}
|
host: {{ db_host }}
|
||||||
username: {{ db_user }}
|
port: {{ db_port }}
|
||||||
password: {{ db_password }}
|
db_name: registry
|
||||||
ssl_mode: disable
|
username: {{ db_user }}
|
||||||
|
password: {{ db_password }}
|
||||||
|
ssl_mode: disable
|
||||||
|
clair:
|
||||||
|
host: {{ clair_db_host }}
|
||||||
|
port: {{ clair_db_port }}
|
||||||
|
db_name: {{ clair_db }}
|
||||||
|
username: {{ clair_db_username }}
|
||||||
|
password: {{ clair_db_password }}
|
||||||
|
ssl_mode: disable
|
||||||
|
notary_signer:
|
||||||
|
host: {{ db_host }}
|
||||||
|
port: {{ db_port }}
|
||||||
|
db_name: notarysigner
|
||||||
|
username: {{ db_user }}
|
||||||
|
password: {{ db_password }}
|
||||||
|
ssl_mode: disable
|
||||||
|
notary_server:
|
||||||
|
host: {{ db_host }}
|
||||||
|
port: {{ db_port }}
|
||||||
|
db_name: notaryserver
|
||||||
|
username: {{ db_user }}
|
||||||
|
password: {{ db_password }}
|
||||||
|
ssl_mode: disable
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if external_redis %}
|
{% if external_redis %}
|
||||||
|
Loading…
Reference in New Issue
Block a user