From f12e236e82e8913a689d1525337b26edb1999c4e Mon Sep 17 00:00:00 2001 From: Xavier Rodriguez Date: Tue, 9 Dec 2025 14:33:37 +0100 Subject: [PATCH] Update run.sh to run container in detached mode with restart policy and add example script for mac-monitor API --- example | 9 +++++++++ run.sh | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 example diff --git a/example b/example new file mode 100644 index 0000000..7242fa2 --- /dev/null +++ b/example @@ -0,0 +1,9 @@ +curl -k -X POST "https://127.0.0.1:8443/mac-monitor" \ + -H "Content-Type: application/json" \ + -d '{ + "host": "10.10.0.1", + "username": "ZabbixROT2c", + "password": "xxxxxxxxxx", + "port": 22, + "timeout": 30 + }' \ No newline at end of file diff --git a/run.sh b/run.sh index bedf961..ddeba6d 100755 --- a/run.sh +++ b/run.sh @@ -1,3 +1,7 @@ #!/bin/bash -docker run --platform linux/amd64 -it localhost/cisco-friends:$(date +%Y%m%d%H) \ No newline at end of file +docker run -d --platform linux/amd64 \ + --restart unless-stopped \ + -p 127.0.0.1:8443:8443 \ + --name cisco-friends \ + localhost/cisco-friends:$(date +%Y%m%d%H) \ No newline at end of file