-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change/docker-compose-localhost (#3703)
Lagt til docker-compose.yml for lokal kjøring av applikasjoner.
- Loading branch information
Showing
18 changed files
with
136 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SELECT 'CREATE DATABASE "testnav-brregstub"' | ||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'testnav-brregstub')\gexec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
|
||
postgresql: | ||
image: postgres | ||
network_mode: host | ||
shm_size: 128mb | ||
environment: | ||
POSTGRES_PASSWORD: "" | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
volumes: | ||
- ./docker-compose.sql:/docker-entrypoint-initdb.d/init.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
services: | ||
|
||
cloud_sql_proxy: | ||
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.14.2 | ||
network_mode: host | ||
command: | ||
- "dolly-dev-ff83:europe-north1:testnav-dolly-backend-local" | ||
- "--credentials-file=/application_default_credentials.json" | ||
- "--run-connection-test" | ||
volumes: | ||
- type: bind | ||
# Set a variable $DOLLY_APPLICATION_CREDENTIALS. We don't use | ||
# GOOGLE_APPLICATION_CREDENTIALS, as this causes an extra step during login. | ||
# | ||
# - $HOME/.config/gcloud/application_default_credentials.json for Linux/macOS. | ||
# - $APPDATA/gcloud/application_default_credentials.json for Windows. | ||
source: $DOLLY_APPLICATION_CREDENTIALS | ||
target: /application_default_credentials.json | ||
|
||
opensearch: | ||
image: opensearchproject/opensearch:latest | ||
ports: | ||
- "9200:9200" | ||
- "9600:9600" | ||
environment: | ||
discovery.type: single-node | ||
plugins.security.disabled: "true" | ||
OPENSEARCH_INITIAL_ADMIN_PASSWORD: YLAgOm}rz#o6#Aq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
|
||
opensearch: | ||
image: opensearchproject/opensearch:latest | ||
ports: | ||
- "9200:9200" | ||
- "9600:9600" | ||
environment: | ||
discovery.type: single-node | ||
plugins.security.disabled: "true" | ||
OPENSEARCH_INITIAL_ADMIN_PASSWORD: YLAgOm}rz#o6#Aq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
services: | ||
|
||
cloud_sql_proxy: | ||
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.14.2 | ||
network_mode: host | ||
command: | ||
- "dolly-dev-ff83:europe-north1:testnav-organisasjon-forvalter-local" | ||
- "--credentials-file=/application_default_credentials.json" | ||
- "--run-connection-test" | ||
volumes: | ||
- type: bind | ||
# Set a variable $DOLLY_APPLICATION_CREDENTIALS. We don't use | ||
# GOOGLE_APPLICATION_CREDENTIALS, as this causes an extra step during login. | ||
# | ||
# - $HOME/.config/gcloud/application_default_credentials.json for Linux/macOS. | ||
# - $APPDATA/gcloud/application_default_credentials.json for Windows. | ||
source: $DOLLY_APPLICATION_CREDENTIALS | ||
target: /application_default_credentials.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
services: | ||
|
||
cloud_sql_proxy: | ||
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.14.2 | ||
network_mode: host | ||
command: | ||
- "dolly-dev-ff83:europe-north1:testnav-pdl-forvalter-local" | ||
- "--credentials-file=/application_default_credentials.json" | ||
- "--run-connection-test" | ||
volumes: | ||
- type: bind | ||
# Set a variable $DOLLY_APPLICATION_CREDENTIALS. We don't use | ||
# GOOGLE_APPLICATION_CREDENTIALS, as this causes an extra step during login. | ||
# | ||
# - $HOME/.config/gcloud/application_default_credentials.json for Linux/macOS. | ||
# - $APPDATA/gcloud/application_default_credentials.json for Windows. | ||
source: $DOLLY_APPLICATION_CREDENTIALS | ||
target: /application_default_credentials.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
|
||
opensearch: | ||
image: opensearchproject/opensearch:latest | ||
ports: | ||
- "9200:9200" | ||
- "9600:9600" | ||
environment: | ||
discovery.type: single-node | ||
plugins.security.disabled: "true" | ||
OPENSEARCH_INITIAL_ADMIN_PASSWORD: YLAgOm}rz#o6#Aq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
apps/person-search-service/src/main/resources/application-local.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DEFINE CHANNEL('Q1_TESTNAV_TPS_MSG_S') CHLTYPE(SVRCONN) MCAUSER('app') REPLACE | ||
SET CHLAUTH('Q1_TESTNAV_TPS_MSG_S') TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(CHANNEL) CHCKCLNT(REQUIRED) DESCR('Allows connection via APP channel') ACTION(REPLACE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
|
||
mq: | ||
image: icr.io/ibm-messaging/mq:latest | ||
environment: | ||
LICENSE: accept | ||
MQ_QMGR_NAME: QM1 | ||
MQ_APP_USER: app | ||
MQ_APP_PASSWORD: passw0rd | ||
MQ_ADMIN_USER: admin | ||
MQ_ADMIN_PASSWORD: passw0rd | ||
ports: | ||
- "127.0.0.1:1414:1414" | ||
- "127.0.0.1:9443:9443" | ||
volumes: | ||
- ./docker-compose.mqsc:/etc/mqm/20-config.mqsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SELECT 'CREATE DATABASE "testnav-udistub"' | ||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'testnav-udistub')\gexec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
|
||
postgresql: | ||
image: postgres | ||
network_mode: host | ||
shm_size: 128mb | ||
environment: | ||
POSTGRES_PASSWORD: "" | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
volumes: | ||
- ./docker-compose.sql:/docker-entrypoint-initdb.d/init.sql |