fix: change ip database and dokcer repo

This commit is contained in:
Sabda Yagra 2025-12-26 11:28:46 +07:00
parent 8c6c581b7d
commit 9d9b9b2cbe
2 changed files with 6 additions and 6 deletions

View File

@ -16,16 +16,16 @@ build-2:
image: docker:24.0.5
services:
- name: docker:24.0.5-dind
command: ["--tls=false", "--insecure-registry=103.31.38.120:8900"]
command: ["--tls=false", "--insecure-registry=38.47.185.86:8900"]
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
script:
- docker logout
- echo "$DEPLOY_TOKEN" | docker login -u "$DEPLOY_USERNAME" --password-stdin http://103.31.38.120:8900
- echo "$DEPLOY_TOKEN" | docker login -u "$DEPLOY_USERNAME" --password-stdin http://38.47.185.86:8900
- docker compose build
- docker tag registry.gitlab.com/hanifsalafi/netidhub-saas-be:dev 103.31.38.120:8900/medols/netidhub-saas-be:dev
- docker push 103.31.38.120:8900/medols/netidhub-saas-be:dev
- docker tag registry.gitlab.com/hanifsalafi/netidhub-saas-be:dev 38.47.185.86:8900/medols/netidhub-saas-be:dev
- docker push 38.47.185.86:8900/medols/netidhub-saas-be:dev
deploy:
stage: deploy

View File

@ -13,7 +13,7 @@ body-limit = 1048576000 # "100 * 1024 * 1024"
primary-client-key = "78356d32-52fa-4dfc-b836-6cebf4e3eead"
[db.postgres]
dsn = "postgresql://netidhub_user:NetidhubDB%402025@157.10.161.198:5432/netidhub_db" # <driver>://<username>:<password>@<host>:<port>/<database>
dsn = "postgresql://netidhub_user:NetidhubDB%402025@38.47.185.79:5432/netidhub_db" # <driver>://<username>:<password>@<host>:<port>/<database>
log-mode = "ERROR"
migrate = true
seed = false
@ -67,7 +67,7 @@ enable = true
retention = 30
[keycloak]
endpoint = "http://103.31.38.120:8080"
endpoint = "http://38.47.185.86:8080"
realm = "medols"
client-id = "medols-app"
client-secret = "iyonEpZbAUs20quwaNFLMwRX7MUgPRlS"