[DEV] limit memory usage in docker and java

This commit is contained in:
Edouard DUPIN 2022-03-13 18:22:44 +01:00
parent 4c6dd426ba
commit ef1ee8dfae
2 changed files with 5 additions and 2 deletions

View File

@ -17,5 +17,5 @@ WORKDIR /application/
EXPOSE 18080
CMD ["java", "-cp", "/application/application.jar", "org.kar.karideo.WebLauncher"]
CMD ["java", "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.karideo.WebLauncher"]

View File

@ -9,6 +9,7 @@ services:
- ./config.env
volumes:
- /workspace/data/karideo/db:/var/lib/mysql
mem_limit: 400m
karideo_adminer_service:
image: adminer:latest
@ -17,6 +18,7 @@ services:
- 18079:8080
links:
- karideo_db_service:db
mem_limit: 100m
karideo_back_service:
build: back/
@ -30,7 +32,7 @@ services:
- karideo_db_service:db
volumes:
- /workspace/data/karideo/media:/application/data
mem_limit: 1200m
karideo_front_service:
build: front/
@ -39,3 +41,4 @@ services:
ports:
#- 15081:4200
- 18081:80
mem_limit: 100m