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