update resource limit

This commit is contained in:
2026-07-21 09:46:24 +07:00
parent 4d4790f100
commit f0ece49c21
+12 -8
View File
@@ -1,12 +1,10 @@
# =====================================================================
# Admin Template HTML - Docker Compose untuk Portainer Stack
# =====================================================================
# File ini akan dibaca oleh Portainer dari repository Gitea.
# Setiap push ke main akan trigger auto-deploy.
# Web app statis, routing via Nginx Proxy Manager (container name)
# Tidak perlu expose port ke host!
# =====================================================================
version: '3.8'
services:
admintemplate-html:
build:
@@ -14,15 +12,21 @@ services:
dockerfile: Dockerfile
container_name: admintemplate-html
restart: unless-stopped
ports:
- '8080:80'
# TIDAK PERLU ports: - routing via NPM ke container name
expose:
- 80
networks:
- indotalent-network
# =================================================================
# RESOURCE LIMITS (Standalone Docker Compose)
# =================================================================
# Nginx ringan, tapi tetap dibatasi untuk 20+ app
mem_limit: 64m # Max 64 MB RAM
mem_reservation: 32m # Minimal 32 MB RAM
cpus: '0.1' # Max 10% dari 1 CPU core
labels:
- "indotalent.service=admintemplate-html"
- "indotalent.description=Admin Template HTML"
- "traefik.enable=true"
- "traefik.http.routers.admintemplate.rule=Host(`app.indotalent.com`)"
networks:
indotalent-network: