From c586d6546140560f37a34e1705d534152cacc551 Mon Sep 17 00:00:00 2001 From: piccihud Date: Thu, 26 Dec 2024 15:03:19 +0100 Subject: [PATCH] impostato limiti ram --- castopod/docker-compose.yml | 6 +++++- code/docker-compose.yml | 1 + freshrss/docker-compose.yml | 2 +- gitea/.env | 1 - gitea/docker-compose.yml | 1 + gotosocial/docker-compose.yml | 1 + kuma/docker-compose.yml | 1 + libretranslate/docker-compose.yml | 2 +- linkwarden/docker-compose.yml | 3 ++- memos/docker-compose.yml | 2 ++ nextcloud/docker-compose.yml | 1 + ntfy/docker-compose.yml | 1 + snikket/docker-compose.yml | 5 ++++- vaultwarden/docker-compose.yml | 1 + watchtower/docker-compose.yml | 4 +++- 15 files changed, 25 insertions(+), 7 deletions(-) delete mode 100644 gitea/.env diff --git a/castopod/docker-compose.yml b/castopod/docker-compose.yml index 87fddd8..dd988a4 100644 --- a/castopod/docker-compose.yml +++ b/castopod/docker-compose.yml @@ -2,6 +2,7 @@ services: app: image: castopod/castopod:latest container_name: "castopod-app" + mem_limit: 512m env_file: .env volumes: - castopod-media:/var/www/castopod/public/media @@ -29,6 +30,7 @@ services: mariadb: image: mariadb:10.5 container_name: "castopod-mariadb" + mem_limit: 512m networks: - castopod-db volumes: @@ -38,14 +40,16 @@ services: MYSQL_DATABASE: castopod MYSQL_USER: castopod MYSQL_PASSWORD: ${MYSQL_PASSWORD} - restart: unless-stopped + restart: always redis: image: redis:7.0-alpine container_name: "castopod-redis" + mem_limit: 256m command: --requirepass ${CP_REDIS_PASSWORD} volumes: - castopod-cache:/data + restart: always networks: - castopod-app diff --git a/code/docker-compose.yml b/code/docker-compose.yml index 5c6590b..a358951 100644 --- a/code/docker-compose.yml +++ b/code/docker-compose.yml @@ -4,6 +4,7 @@ services: image: collabora/code:latest env_file: .env restart: unless-stopped + mem_limit: 2g environment: password: ${COLLABORA_PASSWORD} username: ${COLLABORA_USERNAME} diff --git a/freshrss/docker-compose.yml b/freshrss/docker-compose.yml index 57d4a50..93f3aec 100644 --- a/freshrss/docker-compose.yml +++ b/freshrss/docker-compose.yml @@ -1,9 +1,9 @@ services: - freshrss: image: freshrss/freshrss:latest container_name: freshrss hostname: freshrss + mem_limit: 512m restart: unless-stopped logging: options: diff --git a/gitea/.env b/gitea/.env deleted file mode 100644 index 8b13789..0000000 --- a/gitea/.env +++ /dev/null @@ -1 +0,0 @@ - diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml index 5ef1b7a..33aa81f 100644 --- a/gitea/docker-compose.yml +++ b/gitea/docker-compose.yml @@ -3,6 +3,7 @@ services: image: gitea/gitea:latest env_file: .env container_name: gitea + mem_limit: 1g restart: unless-stopped environment: - USER_UID=102 diff --git a/gotosocial/docker-compose.yml b/gotosocial/docker-compose.yml index f2aba12..8d4ec3b 100644 --- a/gotosocial/docker-compose.yml +++ b/gotosocial/docker-compose.yml @@ -3,6 +3,7 @@ services: image: superseriousbusiness/gotosocial:latest container_name: gotosocial user: 1000:1000 + mem_limit: 2g networks: - gotosocial environment: diff --git a/kuma/docker-compose.yml b/kuma/docker-compose.yml index 8bb2975..8e66120 100644 --- a/kuma/docker-compose.yml +++ b/kuma/docker-compose.yml @@ -2,6 +2,7 @@ services: uptime-kuma: image: louislam/uptime-kuma:1 container_name: uptime-kuma + mem_limit: 512m volumes: - ./uptime-kuma-data:/app/data - /var/run/docker.sock:/var/run/docker.sock diff --git a/libretranslate/docker-compose.yml b/libretranslate/docker-compose.yml index e33247b..2cd06a5 100644 --- a/libretranslate/docker-compose.yml +++ b/libretranslate/docker-compose.yml @@ -9,7 +9,7 @@ services: tty: true healthcheck: test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py'] - mem_limit: 2g + mem_limit: 1g ## Uncomment above command and define your args if necessary command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500 ## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys diff --git a/linkwarden/docker-compose.yml b/linkwarden/docker-compose.yml index 9e864ec..84e0866 100644 --- a/linkwarden/docker-compose.yml +++ b/linkwarden/docker-compose.yml @@ -9,8 +9,9 @@ services: env_file: .env environment: - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres - restart: unless-stopped image: ghcr.io/linkwarden/linkwarden:latest + restart: unless-stopped + mem_limit: 2g ports: - 127.0.0.1:3012:3000 volumes: diff --git a/memos/docker-compose.yml b/memos/docker-compose.yml index 08a76f8..b78db8c 100644 --- a/memos/docker-compose.yml +++ b/memos/docker-compose.yml @@ -2,6 +2,8 @@ services: memos: image: neosmemo/memos:stable container_name: memos + restart: unless-stopped + mem_limit: 1g volumes: - .memos/:/var/opt/memos ports: diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 37abdbf..597d86d 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -8,6 +8,7 @@ services: init: true restart: always container_name: nextcloud-aio-mastercontainer + mem_limit: 4g volumes: - nextcloud_aio_mastercontainer:/mnt/docker-aio-config - /var/run/docker.sock:/var/run/docker.sock:ro diff --git a/ntfy/docker-compose.yml b/ntfy/docker-compose.yml index 58c0485..67cc38d 100644 --- a/ntfy/docker-compose.yml +++ b/ntfy/docker-compose.yml @@ -8,6 +8,7 @@ services: - TZ=CET # optional: set desired timezone - NTFY_BASE_URL=https://ntfy.ilnostropianetaselvaggio.it - NTFY_BEHIND_PROXY=true + mem_limit: 512m volumes: - /var/cache/ntfy:/var/cache/ntfy - /etc/ntfy:/etc/ntfy diff --git a/snikket/docker-compose.yml b/snikket/docker-compose.yml index 08c4fd4..a9c06a6 100644 --- a/snikket/docker-compose.yml +++ b/snikket/docker-compose.yml @@ -3,6 +3,7 @@ services: container_name: snikket-proxy image: snikket/snikket-web-proxy:stable env_file: snikket.conf + mem_limit: 128m network_mode: host volumes: - snikket_data:/snikket @@ -12,6 +13,7 @@ services: container_name: snikket-certs image: snikket/snikket-cert-manager:stable env_file: snikket.conf + mem_limit: 128m volumes: - snikket_data:/snikket - acme_challenges:/var/www/.well-known/acme-challenge @@ -21,8 +23,8 @@ services: image: snikket/snikket-web-portal:stable network_mode: host env_file: snikket.conf + mem_limit: 128m restart: "unless-stopped" - snikket_server: container_name: snikket image: snikket/snikket-server:stable @@ -30,6 +32,7 @@ services: volumes: - snikket_data:/snikket env_file: snikket.conf + mem_limit: 512m restart: "unless-stopped" volumes: diff --git a/vaultwarden/docker-compose.yml b/vaultwarden/docker-compose.yml index 49d2897..925d588 100644 --- a/vaultwarden/docker-compose.yml +++ b/vaultwarden/docker-compose.yml @@ -3,6 +3,7 @@ services: image: vaultwarden/server:latest env_file: .env container_name: vaultwarden + mem_limit: 512m restart: unless-stopped ports: - 127.0.0.1:3001:80 # Needed for the ACME HTTP-01 challenge. diff --git a/watchtower/docker-compose.yml b/watchtower/docker-compose.yml index 0155de3..569ac87 100644 --- a/watchtower/docker-compose.yml +++ b/watchtower/docker-compose.yml @@ -14,4 +14,6 @@ WATCHTOWER_NOTIFICATION_EMAIL_SERVER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER} - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD} \ No newline at end of file + WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD} + mem_limit: 512m + restart: unless-stopped