Docker版 Mikrotik RouterOS
2021-11-02 分类:软件编程 阅读(1059) 评论(0)
Github地址
https://github.com/lordbasex/docker/tree/master/docker-mikrotik
运行截图如下
搭建步骤
1.写 docker-compose.yml 文件
2.将下面代码保存为 docker-compose.yml
version: “3.3”
services:
mkt01:
image: cnsoluciones/mikrotik:latest
container_name: mkt01
restart: always
ports:
– “121:21”
– “122:22”
– “123:23”
– “150:50”
– “151:51”
– “180:80”
– “1443:443”
– “1500:500”
– “11194:1194”
– “11701:1701”
– “11723:1723”
– “14500:4500”
– “15900:5900”
– “18080:8080”
– “18291:8291”
– “18728:8728”
– “18729:8729”
environment:
– “VNCPASSWORD=false”
network_mode: bridge
privileged: true
winbox:
image: cnsoluciones/novnc-winbox:latest
container_name: winbox
hostname: winbox
restart: always
#volumes:
# – ./user-data/.wine:/home/alpine/.wine
links:
– “mkt01”
ports:
– “5901:5900”
– “18081:8080”
network_mode: bridge
执行 docker-compose up -d 命令
浏览器打开 http://xxx.xxx.xxx.xxx:18080
点击 RouterOS 进入命令行版 RouterOS
点击 WinBox 进入可视化界面版 RouterOS