diff --git a/back/Dockerfile b/back/Dockerfile index e5ce9cf..2817048 100644 --- a/back/Dockerfile +++ b/back/Dockerfile @@ -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"] diff --git a/docker-compose.yaml b/docker-compose.yaml index cbbbe40..8067b81 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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