Skip to content

Commit 13d61e6

Browse files
committed
Add memory constraints to images
1 parent 00f965c commit 13d61e6

File tree

8 files changed

+59
-30
lines changed

8 files changed

+59
-30
lines changed

api/Cargo.lock

Lines changed: 34 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[package]
22
name = "api"
3-
version = "0.1.0"
3+
version = "1.3.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
99
lazy_static = "1.5.0"
1010
load_file = "1.0.1"
11-
mongodb = "3.0.0"
11+
mongodb = "3.2.4"
1212
regex = "1.11.1"
1313
rocket = { version = "0.5.1", features = ["json"] }
1414
serde = "1.0.219"
1515
serde_json = "1.0.140"
1616
sha2 = "0.10.9"
17-
tokio = "1.45.1"
18-
toml = "0.8.22"
17+
tokio = "1.46.1"
18+
toml = "0.8.23"
1919
zmq = "0.10.0"

docker-compose.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ services:
1010
proxy:
1111
container_name: zmq_proxy
1212
image: ghcr.io/kile/zmq-proxy:latest
13+
deploy:
14+
resources:
15+
limits:
16+
memory: 512M
1317
build:
1418
context: "./zmq_proxy"
1519
target: ${MODE:-prod}
@@ -76,6 +80,10 @@ services:
7680
grafana:
7781
image: grafana/grafana:10.4.2
7882
restart: unless-stopped
83+
deploy:
84+
resources:
85+
limits:
86+
memory: 512M
7987
ports:
8088
- '3000:3000'
8189
volumes:
@@ -100,6 +108,10 @@ services:
100108
loki:
101109
image: grafana/loki:latest
102110
container_name: loki
111+
deploy:
112+
resources:
113+
limits:
114+
memory: 1024M
103115
ports:
104116
- "3100:3100"
105117
command: -config.file=/etc/loki/config.yml
@@ -110,6 +122,10 @@ services:
110122
alloy:
111123
image: grafana/alloy:latest
112124
container_name: alloy
125+
deploy:
126+
resources:
127+
limits:
128+
memory: 1024M
113129
ports:
114130
- 12345:12345
115131
- 4317:4317

script_service/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script_service/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "script_service"
3-
version = "0.1.0"
3+
version = "1.3.1"
44
edition = "2024"
55

66
[dependencies]

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sonar.organization=kile
44

55
# This is the name and version displayed in the SonarCloud UI.
66
sonar.projectName=Killua
7-
sonar.projectVersion=1.3.0
7+
sonar.projectVersion=1.3.1
88

99

1010
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.

zmq_proxy/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zmq_proxy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zmq_proxy"
3-
version = "0.1.0"
3+
version = "1.3.1"
44
edition = "2021"
55

66
[dependencies]

0 commit comments

Comments
 (0)