Skip to content

Commit

Permalink
- added docker JAVA_MEMORY_SETTINGS
Browse files Browse the repository at this point in the history
  • Loading branch information
MichiBaum committed Feb 17, 2024
1 parent e7cc1aa commit 7e763c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ USERMANAGEMENT_DB_PASSWORD=PleaseChangeMe
USERMANAGEMENT_DB=usermanagement

AUTHENTICATION_DB_PASSWORD=PleaseChangeMe
AUTHENTICATION_DB=authentication
AUTHENTICATION_DB=authentication

JAVA_MEMORY_SETTINGS=-Xss256K -XX:ReservedCodeCacheSize=64M -XX:MaxMetaspaceSize=64 -Xmx64M
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
restart: always
environment:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
JVM_OPTS: ${JAVA_MEMORY_SETTINGS}
expose:
- "8761"
networks:
Expand All @@ -25,6 +26,7 @@ services:
- registry-service
environment:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
JVM_OPTS: ${JAVA_MEMORY_SETTINGS}
expose:
- "80"
networks:
Expand All @@ -40,6 +42,7 @@ services:
- registry-service
environment:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
JVM_OPTS: ${JAVA_MEMORY_SETTINGS}
expose:
- "80"
networks:
Expand All @@ -55,6 +58,7 @@ services:
- registry-service
environment:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
JVM_OPTS: ${JAVA_MEMORY_SETTINGS}
expose:
- "80"
networks:
Expand Down Expand Up @@ -89,6 +93,7 @@ services:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
DATABASE_PASSWORD: ${USERMANAGEMENT_DB_PASSWORD}
DATABASE: ${USERMANAGEMENT_DB}
JVM_OPTS: ${JAVA_MEMORY_SETTINGS}
expose:
- "80"
networks:
Expand Down Expand Up @@ -120,6 +125,7 @@ services:
- registry-service
environment:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
JVM_OPTS: ${JAVA_MEMORY_SETTINGS}
ports:
- "80:80"
networks:
Expand All @@ -135,6 +141,7 @@ services:
- registry-service
environment:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
JVM_OPTS: ${JAVA_MEMORY_SETTINGS}
expose:
- "80"
networks:
Expand Down

0 comments on commit 7e763c6

Please sign in to comment.