Skip to content

Commit

Permalink
- github action checkout v3 -> v4
Browse files Browse the repository at this point in the history
- github action setup-java v2 -> v4
  • Loading branch information
MichiBaum committed Dec 22, 2023
1 parent 3687464 commit a84675a
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SPRING_ACTIVE_PROFILES=prod

USERMANAGEMENT_DB_PASSWORD=PleaseChangeMe
USERMANAGEMENT_DB=usermanagement

Expand Down
Empty file added .env.override
Empty file.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: 'Build, upload docker containers and deploy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 21
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
Expand Down
38 changes: 30 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,69 @@ services:

registry-service:
image: 70131370/registry-service:1.0.0-TEST-6
env_file:
- .env
- .env.override
restart: always
environment:
spring_profiles_active: prod
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
expose:
- "8761"
networks:
- microservice-network

admin-service:
image: 70131370/admin-service:1.0.0-TEST-6
env_file:
- .env
- .env.override
restart: always
depends_on:
- registry-service
environment:
spring_profiles_active: prod
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
expose:
- "80"
networks:
- microservice-network

javadoc-service:
image: 70131370/javadoc-service:1.0.0-TEST-6
env_file:
- .env
- .env.override
restart: always
depends_on:
- registry-service
environment:
spring_profiles_active: prod
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
expose:
- "80"
networks:
- microservice-network

authentication-service:
image: 70131370/authentication-service:1.0.0-TEST-6
env_file:
- .env
- .env.override
restart: always
depends_on:
- registry-service
environment:
spring_profiles_active: prod
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
expose:
- "80"
networks:
- microservice-network

authentication-db:
image: mysql:8.0
env_file:
- .env
- .env.override
restart: always
environment:
spring_profiles_active: prod
MYSQL_ROOT_PASSWORD: ${AUTHENTICATION_DB_PASSWORD}
MYSQL_DATABASE: ${AUTHENTICATION_DB}
expose:
Expand All @@ -62,12 +76,15 @@ services:

usermanagement-service:
image: 70131370/usermanagement-service:1.0.0-TEST-6
env_file:
- .env
- .env.override
restart: always
depends_on:
- registry-service
- usermanagement-db
environment:
spring_profiles_active: prod
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
DATABASE_PASSWORD: ${USERMANAGEMENT_DB_PASSWORD}
DATABASE: ${USERMANAGEMENT_DB}
expose:
Expand All @@ -77,9 +94,11 @@ services:

usermanagement-db:
image: mysql:8.0
env_file:
- .env
- .env.override
restart: always
environment:
spring_profiles_active: prod
MYSQL_ROOT_PASSWORD: ${USERMANAGEMENT_DB_PASSWORD}
MYSQL_DATABASE: ${USERMANAGEMENT_DB}
expose:
Expand All @@ -89,6 +108,9 @@ services:

gateway-service:
image: 70131370/gateway-service:1.0.0-TEST-6
env_file:
- .env
- .env.override
restart: always
depends_on:
- registry-service
Expand All @@ -99,7 +121,7 @@ services:
ports:
- "80:80"
environment:
spring_profiles_active: prod
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
networks:
- microservice-network

Expand Down
1 change: 1 addition & 0 deletions docker-down.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker compose down
1 change: 1 addition & 0 deletions docker-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker compose up --build -d
5 changes: 5 additions & 0 deletions gateway-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<artifactId>gateway-service</artifactId>
<name>gateway-service</name>

<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit a84675a

Please sign in to comment.