Skip to content

Commit

Permalink
sphinx-swarm 300mb mem limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Aug 8, 2024
1 parent cb9ebc9 commit 39a11a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "2"

services:
load_balancer:
image: traefik:v2.2.1
Expand Down Expand Up @@ -61,6 +59,10 @@ services:
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: on-failure
deploy:
resources:
limits:
memory: 300M
environment:
- HOST=$HOST # subdomain e.g. swarmx.sphinx.chat
- IP=$IP
Expand Down
2 changes: 1 addition & 1 deletion src/images/neo4j.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// use super::traefik::{neo4j_labels, traefik_labels};
use super::*;
use crate::config::Node;
use crate::dock::upload_to_container;
use crate::dock::{exec, upload_to_container};
use crate::utils::{domain, exposed_ports, host_config};
use anyhow::Result;
use async_trait::async_trait;
Expand Down

0 comments on commit 39a11a7

Please sign in to comment.