initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# =====================================================================
|
||||
# Admin Template Razor - 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:
|
||||
admintemplate-razor:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: admintemplate-razor
|
||||
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=admintemplate-razor"
|
||||
- "indotalent.description=Admin Template ASP.NET Core Razor Pages .NET 10"
|
||||
|
||||
networks:
|
||||
indotalent-network:
|
||||
external: true
|
||||
name: indotalent-network
|
||||
Reference in New Issue
Block a user