impostato limiti ram

This commit is contained in:
piccihud 2024-12-26 15:03:19 +01:00
parent 50f62ec0c1
commit c586d65461
15 changed files with 25 additions and 7 deletions

View File

@ -2,6 +2,7 @@ services:
app: app:
image: castopod/castopod:latest image: castopod/castopod:latest
container_name: "castopod-app" container_name: "castopod-app"
mem_limit: 512m
env_file: .env env_file: .env
volumes: volumes:
- castopod-media:/var/www/castopod/public/media - castopod-media:/var/www/castopod/public/media
@ -29,6 +30,7 @@ services:
mariadb: mariadb:
image: mariadb:10.5 image: mariadb:10.5
container_name: "castopod-mariadb" container_name: "castopod-mariadb"
mem_limit: 512m
networks: networks:
- castopod-db - castopod-db
volumes: volumes:
@ -38,14 +40,16 @@ services:
MYSQL_DATABASE: castopod MYSQL_DATABASE: castopod
MYSQL_USER: castopod MYSQL_USER: castopod
MYSQL_PASSWORD: ${MYSQL_PASSWORD} MYSQL_PASSWORD: ${MYSQL_PASSWORD}
restart: unless-stopped restart: always
redis: redis:
image: redis:7.0-alpine image: redis:7.0-alpine
container_name: "castopod-redis" container_name: "castopod-redis"
mem_limit: 256m
command: --requirepass ${CP_REDIS_PASSWORD} command: --requirepass ${CP_REDIS_PASSWORD}
volumes: volumes:
- castopod-cache:/data - castopod-cache:/data
restart: always
networks: networks:
- castopod-app - castopod-app

View File

@ -4,6 +4,7 @@ services:
image: collabora/code:latest image: collabora/code:latest
env_file: .env env_file: .env
restart: unless-stopped restart: unless-stopped
mem_limit: 2g
environment: environment:
password: ${COLLABORA_PASSWORD} password: ${COLLABORA_PASSWORD}
username: ${COLLABORA_USERNAME} username: ${COLLABORA_USERNAME}

View File

@ -1,9 +1,9 @@
services: services:
freshrss: freshrss:
image: freshrss/freshrss:latest image: freshrss/freshrss:latest
container_name: freshrss container_name: freshrss
hostname: freshrss hostname: freshrss
mem_limit: 512m
restart: unless-stopped restart: unless-stopped
logging: logging:
options: options:

View File

@ -1 +0,0 @@

View File

@ -3,6 +3,7 @@ services:
image: gitea/gitea:latest image: gitea/gitea:latest
env_file: .env env_file: .env
container_name: gitea container_name: gitea
mem_limit: 1g
restart: unless-stopped restart: unless-stopped
environment: environment:
- USER_UID=102 - USER_UID=102

View File

@ -3,6 +3,7 @@ services:
image: superseriousbusiness/gotosocial:latest image: superseriousbusiness/gotosocial:latest
container_name: gotosocial container_name: gotosocial
user: 1000:1000 user: 1000:1000
mem_limit: 2g
networks: networks:
- gotosocial - gotosocial
environment: environment:

View File

@ -2,6 +2,7 @@ services:
uptime-kuma: uptime-kuma:
image: louislam/uptime-kuma:1 image: louislam/uptime-kuma:1
container_name: uptime-kuma container_name: uptime-kuma
mem_limit: 512m
volumes: volumes:
- ./uptime-kuma-data:/app/data - ./uptime-kuma-data:/app/data
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock

View File

@ -9,7 +9,7 @@ services:
tty: true tty: true
healthcheck: healthcheck:
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py'] test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
mem_limit: 2g mem_limit: 1g
## Uncomment above command and define your args if necessary ## Uncomment above command and define your args if necessary
command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500 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 ## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys

View File

@ -9,8 +9,9 @@ services:
env_file: .env env_file: .env
environment: environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
restart: unless-stopped
image: ghcr.io/linkwarden/linkwarden:latest image: ghcr.io/linkwarden/linkwarden:latest
restart: unless-stopped
mem_limit: 2g
ports: ports:
- 127.0.0.1:3012:3000 - 127.0.0.1:3012:3000
volumes: volumes:

View File

@ -2,6 +2,8 @@ services:
memos: memos:
image: neosmemo/memos:stable image: neosmemo/memos:stable
container_name: memos container_name: memos
restart: unless-stopped
mem_limit: 1g
volumes: volumes:
- .memos/:/var/opt/memos - .memos/:/var/opt/memos
ports: ports:

View File

@ -8,6 +8,7 @@ services:
init: true init: true
restart: always restart: always
container_name: nextcloud-aio-mastercontainer container_name: nextcloud-aio-mastercontainer
mem_limit: 4g
volumes: volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro

View File

@ -8,6 +8,7 @@ services:
- TZ=CET # optional: set desired timezone - TZ=CET # optional: set desired timezone
- NTFY_BASE_URL=https://ntfy.ilnostropianetaselvaggio.it - NTFY_BASE_URL=https://ntfy.ilnostropianetaselvaggio.it
- NTFY_BEHIND_PROXY=true - NTFY_BEHIND_PROXY=true
mem_limit: 512m
volumes: volumes:
- /var/cache/ntfy:/var/cache/ntfy - /var/cache/ntfy:/var/cache/ntfy
- /etc/ntfy:/etc/ntfy - /etc/ntfy:/etc/ntfy

View File

@ -3,6 +3,7 @@ services:
container_name: snikket-proxy container_name: snikket-proxy
image: snikket/snikket-web-proxy:stable image: snikket/snikket-web-proxy:stable
env_file: snikket.conf env_file: snikket.conf
mem_limit: 128m
network_mode: host network_mode: host
volumes: volumes:
- snikket_data:/snikket - snikket_data:/snikket
@ -12,6 +13,7 @@ services:
container_name: snikket-certs container_name: snikket-certs
image: snikket/snikket-cert-manager:stable image: snikket/snikket-cert-manager:stable
env_file: snikket.conf env_file: snikket.conf
mem_limit: 128m
volumes: volumes:
- snikket_data:/snikket - snikket_data:/snikket
- acme_challenges:/var/www/.well-known/acme-challenge - acme_challenges:/var/www/.well-known/acme-challenge
@ -21,8 +23,8 @@ services:
image: snikket/snikket-web-portal:stable image: snikket/snikket-web-portal:stable
network_mode: host network_mode: host
env_file: snikket.conf env_file: snikket.conf
mem_limit: 128m
restart: "unless-stopped" restart: "unless-stopped"
snikket_server: snikket_server:
container_name: snikket container_name: snikket
image: snikket/snikket-server:stable image: snikket/snikket-server:stable
@ -30,6 +32,7 @@ services:
volumes: volumes:
- snikket_data:/snikket - snikket_data:/snikket
env_file: snikket.conf env_file: snikket.conf
mem_limit: 512m
restart: "unless-stopped" restart: "unless-stopped"
volumes: volumes:

View File

@ -3,6 +3,7 @@ services:
image: vaultwarden/server:latest image: vaultwarden/server:latest
env_file: .env env_file: .env
container_name: vaultwarden container_name: vaultwarden
mem_limit: 512m
restart: unless-stopped restart: unless-stopped
ports: ports:
- 127.0.0.1:3001:80 # Needed for the ACME HTTP-01 challenge. - 127.0.0.1:3001:80 # Needed for the ACME HTTP-01 challenge.

View File

@ -15,3 +15,5 @@
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD}
mem_limit: 512m
restart: unless-stopped