Skip to content

Commit

Permalink
Koble til ny database hentet fra backup (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 authored Jun 20, 2024
1 parent 466ba1f commit 397169b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .nais/feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ azure:
unsecure:
ereg_url: ereg-services.dev-fss-pub.nais.io
dbname: bidrag-grunnlag-feature
dbinstancename: bidrag-grunnlag-feature-2
azureAccessInbound:
- application: bisys
namespace: bidrag
Expand All @@ -48,4 +49,5 @@ spec:
min: 1
gcp:
sqlInstances:
diskSize: 10
tier: db-f1-micro
2 changes: 2 additions & 0 deletions .nais/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ azure:
unsecure:
ereg_url: ereg-services.dev-fss-pub.nais.io
dbname: bidrag-grunnlag-main
dbinstancename: bidrag-grunnlag-main-4
azureAccessInbound:
- application: bisys
namespace: bidrag
Expand All @@ -48,4 +49,5 @@ spec:
min: 2
gcp:
sqlInstances:
diskSize: 15
tier: db-f1-micro
3 changes: 2 additions & 1 deletion .nais/nais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ spec:
value: {{ azure.bidrag_organisasjon_scope }}
gcp:
sqlInstances:
- name: {{ dbname }}
- name: {{ dbinstancename }}
type: POSTGRES_14
diskSize: {{ spec.gcp.sqlInstances.diskSize }}
databases:
- name: {{ dbname }}
envVarPrefix: DB
Expand Down
2 changes: 2 additions & 0 deletions .nais/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ azure:
unsecure:
ereg_url: ereg-services.prod-fss-pub.nais.io
dbname: bidrag-grunnlag-prod
dbinstancename: bidrag-grunnlag-prod-3
azureAccessInbound:
- application: bisys
namespace: bidrag
Expand All @@ -46,4 +47,5 @@ spec:
min: 2
gcp:
sqlInstances:
diskSize: 20
tier: db-custom-1-3840
8 changes: 7 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,19 @@ spring:
config.activate.on-profile: live
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_DATABASE}?user=${DB_USERNAME}&password=${DB_PASSWORD}
url: ${DB_JDBC_URL}
hikari:
idle-timeout: 10001
max-lifetime: 30001
connectionTimeout: 1000
maximum-pool-size: 10
minimum-idle: 1
data-source-properties:
ssl: true
sslmode: ${DB_SSLMODE}
sslcert: ${DB_SSLCERT}
sslkey: ${DB_SSLKEY_PK8}
sslrootcert: ${DB_SSLROOTCERT}
flyway:
enabled: true
locations: classpath:/db/migration
Expand Down

0 comments on commit 397169b

Please sign in to comment.