first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# Docker Compose para Cisco Single MAC Monitor
|
||||
# ============================================
|
||||
|
||||
services:
|
||||
cisco-mac-monitor:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
platforms:
|
||||
- linux/amd64
|
||||
image: cisco-mac-monitor:latest
|
||||
container_name: cisco-mac-monitor
|
||||
|
||||
# Red del host para acceso a dispositivos locales
|
||||
network_mode: host
|
||||
|
||||
# Límites de recursos
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.2'
|
||||
memory: 128M
|
||||
reservations:
|
||||
cpus: '0.05'
|
||||
memory: 32M
|
||||
|
||||
# Logging del contenedor
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "5m"
|
||||
max-file: "2"
|
||||
|
||||
# Ejemplo de uso en comentarios:
|
||||
# Para ejecutar el contenedor con parámetros:
|
||||
# docker run --rm --network host cisco-mac-monitor \
|
||||
# --host 192.168.1.10 \
|
||||
# --username admin \
|
||||
# --password cisco123
|
||||
Reference in New Issue
Block a user