Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit f2f69d6

Browse files
committed
feat: add memory limit and Java options to Docker Compose configuration
1 parent 17a5d46 commit f2f69d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ services:
2222
container_name: stego-app
2323
ports:
2424
- "8080:8080"
25+
mem_limit: 2g
2526
environment:
2627
# Connect to the MySQL container
2728
- DATABASE_URL=jdbc:mysql://db-mysql:3306/stego
2829
- DATABASE_USER=user
2930
- DATABASE_PASSWORD=password
3031
# Point storage inside the container to the mounted volume
3132
- STORAGE_BASE_PATH=/app/storage
33+
# Other environment variables as needed
34+
- JAVA_TOOL_OPTIONS=-XX:MaxRAMPercentage=75.0
3235
volumes:
3336
# Mount the local storage directory into the container to persist files
3437
- storage_data:/app/storage

0 commit comments

Comments
 (0)