This commit is contained in:
Anang Yusman 2025-12-28 18:45:48 +08:00
parent ba7929fd9f
commit 6d105b1c18
2 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ build-2:
image: docker:24
services:
- name: docker:24-dind
command: ["--insecure-registry=103.31.38.120:8900"]
command: ["--insecure-registry=38.47.185.86:8900"]
variables:
DOCKER_HOST: tcp://docker:2375
@ -15,10 +15,10 @@ build-2:
script:
- docker version
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.31.38.120:8900
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 38.47.185.86:8900
- docker build -t registry.gitlab.com/hanifsalafi/web-medols-be:dev .
- docker tag registry.gitlab.com/hanifsalafi/web-medols-be:dev 103.31.38.120:8900/medols/web-medols-be:dev
- docker push 103.31.38.120:8900/medols/web-medols-be:dev
- docker tag registry.gitlab.com/hanifsalafi/web-medols-be:dev 38.47.185.86:8900/medols/web-medols-be:dev
- docker push 38.47.185.86:8900/medols/web-medols-be:dev
deploy:
stage: deploy

View File

@ -1,7 +1,7 @@
# Configuration vars for cmd/app
[app]
name = "Fiber starter"
host = "http://103.31.38.120"
host = "http://38.47.185.86"
port = ":8800"
domain = "https://dev.mikulnews.com/api"
external-port = ":8802"
@ -12,7 +12,7 @@ production = false
body-limit = 1048576000 # "100 * 1024 * 1024"
[db.postgres]
dsn = "postgresql://medols_user:MedolsDB@2025@157.10.161.198:5432/medols_db" # <driver>://<username>:<password>@<host>:<port>/<database>
dsn = "postgresql://medols_user:MedolsDB@2025@38.47.185.79:5432/medols_db" # <driver>://<username>:<password>@<host>:<port>/<database>
log-mode = "ERROR"
migrate = true
seed = false
@ -66,7 +66,7 @@ enable = true
retention = 30
[keycloak]
endpoint = "http://103.31.38.120:8008"
endpoint = "http://38.47.185.86:8008"
realm = "medols"
client-id = "medols-app"
client-secret = "iyonEpZbAUs20quwaNFLMwRX7MUgPRlS"