Skip to content

Commit

Permalink
Stack env Parameter und docker-compose service, inklusive Anordnung d…
Browse files Browse the repository at this point in the history
…er Services in Reheinfolge der Portnummer vor wls-eai-service
  • Loading branch information
Nic12345678 committed Oct 15, 2024
1 parent 95bee3f commit 2464018
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 17 deletions.
6 changes: 5 additions & 1 deletion stack/.env
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ WLS_EAI_SERVICE_KEYCLOAK_URL=http://kubernetes.docker.internal:8100/auth/realms/

WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_PROFILE=local,db-oracle,dummy.nobezirkid.check
WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_DB_URL=jdbc:oracle:thin:@//wls-db-oracle:1521/XEPDB1
WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_KEYCLOAK_URL=http://kubernetes.docker.internal:8100/auth/realms/${SSO_REALM}/protocol/openid-connect
WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_KEYCLOAK_URL=http://kubernetes.docker.internal:8100/auth/realms/${SSO_REALM}/protocol/openid-connect

WLS_BASISDATEN_SERVICE_PROFILE=local,db-oracle
WLS_BASISDATEN_SERVICE_DB_URL=jdbc:oracle:thin:@//wls-db-oracle:1521/XEPDB1
WLS_BASISDATEN_SERVICE_KEYCLOAK_URL=http://kubernetes.docker.internal:8100/auth/realms/${SSO_REALM}/protocol/openid-connect
51 changes: 35 additions & 16 deletions stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,40 +78,59 @@ services:
- services
- keycloak

wls-eai-service:
container_name: wls-eai-service
image: ghcr.io/it-at-m/wahllokalsystem-wls-eai-service:latest
wls-vorfaelleundvorkommnisse-service:
container_name: wls-vorfaelleundvorkommnisse-service
image: ghcr.io/it-at-m/wahllokalsystem-wls-vorfaelleundvorkommnisse-service:latest
depends_on:
- wls-db-oracle
env_file:
- .env
environment:
- SPRING_PROFILES_ACTIVE=${WLS_EAI_SERVICE_PROFILE}
- SPRING_DATASOURCE_URL=${WLS_EAI_SERVICE_DB_URL}
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK-SET-URI=${WLS_EAI_SERVICE_KEYCLOAK_URL}/certs
- SECURITY_OAUTH2_RESOURCE_USER-INFO-URI=${WLS_EAI_SERVICE_KEYCLOAK_URL}/userinfo
- SPRING_PROFILES_ACTIVE=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_PROFILE}
- SPRING_DATASOURCE_URL=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_DB_URL}
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK-SET-URI=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_KEYCLOAK_URL}/certs
- SECURITY_OAUTH2_RESOURCE_USER-INFO-URI=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_KEYCLOAK_URL}/userinfo
- SERVER_PORT=8080
ports:
- 8300:8080
- 8204:8080
networks:
- services
- keycloak

wls-vorfaelleundvorkommnisse-service:
container_name: wls-vorfaelleundvorkommnisse-service
image: ghcr.io/it-at-m/wahllokalsystem-wls-vorfaelleundvorkommnisse-service:latest
wls-basisdaten-service:
container_name: wls-basisdaten-service
image: ghcr.io/it-at-m/wahllokalsystem-wls-basisdaten-service:latest
depends_on:
- wls-db-oracle
env_file:
- .env
environment:
- SPRING_PROFILES_ACTIVE=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_PROFILE}
- SPRING_DATASOURCE_URL=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_DB_URL}
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK-SET-URI=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_KEYCLOAK_URL}/certs
- SECURITY_OAUTH2_RESOURCE_USER-INFO-URI=${WLS_VORFAELLEUNDVORKOMMNISSE_SERVICE_KEYCLOAK_URL}/userinfo
- SPRING_PROFILES_ACTIVE=${WLS_BASISDATEN_SERVICE_PROFILE}
- SPRING_DATASOURCE_URL=${WLS_BASISDATEN_SERVICE_DB_URL}
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK-SET-URI=${WLS_BASISDATEN_SERVICE_KEYCLOAK_URL}/certs
- SECURITY_OAUTH2_RESOURCE_USER-INFO-URI=${WLS_BASISDATEN_SERVICE_KEYCLOAK_URL}/userinfo
- SERVER_PORT=8080
ports:
- 8204:8080
- 8205:8080
networks:
- services
- keycloak

wls-eai-service:
container_name: wls-eai-service
image: ghcr.io/it-at-m/wahllokalsystem-wls-eai-service:latest
depends_on:
- wls-db-oracle
env_file:
- .env
environment:
- SPRING_PROFILES_ACTIVE=${WLS_EAI_SERVICE_PROFILE}
- SPRING_DATASOURCE_URL=${WLS_EAI_SERVICE_DB_URL}
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK-SET-URI=${WLS_EAI_SERVICE_KEYCLOAK_URL}/certs
- SECURITY_OAUTH2_RESOURCE_USER-INFO-URI=${WLS_EAI_SERVICE_KEYCLOAK_URL}/userinfo
- SERVER_PORT=8080
ports:
- 8300:8080
networks:
- services
- keycloak
Expand Down

0 comments on commit 2464018

Please sign in to comment.