144 lines
3.7 KiB
YAML
144 lines
3.7 KiB
YAML
version: '3.8'
|
|
|
|
# =============================================================================
|
|
# ERP-SUITE - Production Docker Compose
|
|
# =============================================================================
|
|
# Servidor: 72.60.226.4
|
|
# Componentes: erp-core + verticales opcionales
|
|
# =============================================================================
|
|
|
|
services:
|
|
# ===========================================================================
|
|
# ERP-CORE
|
|
# ===========================================================================
|
|
erp-core-backend:
|
|
image: ${DOCKER_REGISTRY:-72.60.226.4:5000}/erp-core-backend:${VERSION:-latest}
|
|
container_name: erp-core-backend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3011:3011"
|
|
environment:
|
|
- NODE_ENV=production
|
|
env_file:
|
|
- ../apps/erp-core/backend/.env.production
|
|
volumes:
|
|
- erp-logs:/var/log/erp-core
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3011/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- erp-network
|
|
- isem-network
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 512M
|
|
|
|
erp-core-frontend:
|
|
image: ${DOCKER_REGISTRY:-72.60.226.4:5000}/erp-core-frontend:${VERSION:-latest}
|
|
container_name: erp-core-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3010:80"
|
|
depends_on:
|
|
erp-core-backend:
|
|
condition: service_healthy
|
|
networks:
|
|
- erp-network
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 128M
|
|
|
|
# ===========================================================================
|
|
# VERTICALES (descomentar según necesidad)
|
|
# ===========================================================================
|
|
|
|
# CONSTRUCCION
|
|
# construccion-backend:
|
|
# image: ${DOCKER_REGISTRY}/erp-construccion-backend:${VERSION:-latest}
|
|
# container_name: erp-construccion-backend
|
|
# ports:
|
|
# - "3021:3021"
|
|
# env_file:
|
|
# - ../apps/verticales/construccion/backend/.env.production
|
|
# networks:
|
|
# - erp-network
|
|
|
|
# construccion-frontend:
|
|
# image: ${DOCKER_REGISTRY}/erp-construccion-frontend:${VERSION:-latest}
|
|
# container_name: erp-construccion-frontend
|
|
# ports:
|
|
# - "3020:80"
|
|
# networks:
|
|
# - erp-network
|
|
|
|
# VIDRIO-TEMPLADO
|
|
# vidrio-backend:
|
|
# image: ${DOCKER_REGISTRY}/erp-vidrio-backend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3031:3031"
|
|
|
|
# vidrio-frontend:
|
|
# image: ${DOCKER_REGISTRY}/erp-vidrio-frontend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3030:80"
|
|
|
|
# MECANICAS-DIESEL
|
|
# mecanicas-backend:
|
|
# image: ${DOCKER_REGISTRY}/erp-mecanicas-backend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3041:3041"
|
|
|
|
# mecanicas-frontend:
|
|
# image: ${DOCKER_REGISTRY}/erp-mecanicas-frontend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3040:80"
|
|
|
|
# RETAIL
|
|
# retail-backend:
|
|
# image: ${DOCKER_REGISTRY}/erp-retail-backend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3051:3051"
|
|
|
|
# retail-frontend:
|
|
# image: ${DOCKER_REGISTRY}/erp-retail-frontend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3050:80"
|
|
|
|
# CLINICAS
|
|
# clinicas-backend:
|
|
# image: ${DOCKER_REGISTRY}/erp-clinicas-backend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3061:3061"
|
|
|
|
# clinicas-frontend:
|
|
# image: ${DOCKER_REGISTRY}/erp-clinicas-frontend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3060:80"
|
|
|
|
# POS-MICRO
|
|
# pos-backend:
|
|
# image: ${DOCKER_REGISTRY}/erp-pos-backend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3071:3071"
|
|
|
|
# pos-frontend:
|
|
# image: ${DOCKER_REGISTRY}/erp-pos-frontend:${VERSION:-latest}
|
|
# ports:
|
|
# - "3070:80"
|
|
|
|
volumes:
|
|
erp-logs:
|
|
|
|
networks:
|
|
erp-network:
|
|
driver: bridge
|
|
isem-network:
|
|
external: true
|
|
name: isem-network
|