Files
aegis-web/docker-compose.yml
2026-07-21 10:29:41 +07:00

41 lines
1.6 KiB
YAML

# =====================================================================
# Aegis Web - Docker Compose untuk Portainer Stack
# =====================================================================
# ASP.NET Core Razor Pages .NET 10
# Routing via Nginx Proxy Manager (container name)
# Tidak perlu expose port ke host!
# =====================================================================
services:
aegis-web:
build:
context: .
dockerfile: Dockerfile
container_name: aegis-web
restart: unless-stopped
# TIDAK PERLU ports: - routing via NPM ke container name
expose:
- 8080
networks:
- indotalent-network
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:8080
# Database connection strings (gunakan internal hostnames)
- ConnectionStrings__PostgreSQL=Host=postgres;Port=5432;Database=indotalent;Username=indotalent_admin;Password=nw9703AZz6YmgB@G
- ConnectionStrings__MSSQL=Server=mssql,1433;Database=indotalent;User Id=sa;Password=nw9703AZz6YmgB@G;TrustServerCertificate=True
# =================================================================
# RESOURCE LIMITS (Standalone Docker Compose)
# =================================================================
# Minimal 256MB, Max 512MB
mem_limit: 512m # Max 512 MB RAM
mem_reservation: 256m # Minimal 256 MB RAM
cpus: '0.5' # Max 50% dari 1 CPU core
labels:
- "indotalent.service=aegis-web"
- "indotalent.description=Aegis Web ASP.NET Core Razor Pages .NET 10"
networks:
indotalent-network:
external: true
name: indotalent-network