first commit
This commit is contained in:
No files matched your search
@@ -0,0 +1,53 @@
|
||||
# ============================================
|
||||
# SIMRS Log Forensic Inspector
|
||||
# docker-compose.yml
|
||||
# ============================================
|
||||
# Gunakan:
|
||||
# make dev-up → Jalankan mode DEVELOPMENT
|
||||
# make prod-up → Jalankan mode PRODUCTION
|
||||
# ============================================
|
||||
|
||||
x-common: &common
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5880:5880"
|
||||
environment: &common-env
|
||||
PORT: 5880
|
||||
LOGS_DIR: /app/logs
|
||||
KEYCLOAK_URL: https://auth.rssa.top/
|
||||
KEYCLOAK_REALM: rssa
|
||||
KEYCLOAK_CLIENT_ID: satu
|
||||
KEYCLOAK_CLIENT_SECRET: ZhkK45MHB0a0eAZX5ecNTnlfnWlZXfBE
|
||||
SIMRS_URL: http://meninjar.dev.rssa.id:4003
|
||||
|
||||
services:
|
||||
# ─── Development ───────────────────────────
|
||||
dev:
|
||||
<<: *common
|
||||
container_name: simrs-log-forensic-dev
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
profiles: ["dev"]
|
||||
environment:
|
||||
<<: *common-env
|
||||
NODE_ENV: development
|
||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||
volumes:
|
||||
- .:/app
|
||||
- /app/node_modules
|
||||
- /mnt/simrs/logs:/app/logs
|
||||
|
||||
# ─── Production ────────────────────────────
|
||||
prod:
|
||||
<<: *common
|
||||
container_name: simrs-log-forensic
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.prod
|
||||
profiles: ["prod"]
|
||||
environment:
|
||||
<<: *common-env
|
||||
NODE_ENV: production
|
||||
volumes:
|
||||
- /mnt/simrs/logs:/app/logs
|
||||
Reference in New Issue
Block a user