diff --git a/README.md b/README.md index 4b0d878..f35605a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ This extrasmall image was created for tests purpose only, for example on this project based unit testing of [routeros-api-php](https://github.com/EvilFreelancer/routeros-api-php) library. - If you need fully functional "RouterOS in Docker" for production usage look at [VR Network Lab](https://github.com/plajjan/vrnetlab) project. @@ -28,26 +27,31 @@ docker run -d -p 22:22 -p 8728:8728 -p 8729:8729 -ti evilfreelancer/docker-route ### Use in docker-compose.yml +Example is [here](docker-compose.yml). + ```yml -version: "2" +version: "3" services: - routeros-legacy: + routeros-6-42: image: evilfreelancer/docker-routeros:6.42 restart: unless-stopped ports: - - 12222:22 - - 18728:8728 - - 18729:8729 + - "12222:22" + - "12223:23" + - "18728:8728" + - "18729:8729" - routeros-modern: + routeros-6-43: image: evilfreelancer/docker-routeros:6.43 restart: unless-stopped ports: - - 22222:22 - - 28728:8728 - - 28729:8729 + - "22223:23" + - "22222:22" + - "28728:8728" + - "28729:8729" + ``` ### Build from sources @@ -58,11 +62,11 @@ For this you need download project and build everything from scratch: git clone https://github.com/EvilFreelancer/docker-routeros.git cd docker-routeros docker build . --tag ros -docker run -d -p 22222:22 -p 8728:8728 -p 8729:8729 -ti ros +docker run -d -p 2222:22 -p 8728:8728 -p 8729:8729 -p 25900:5900 -ti ros ``` Now you can connect to your RouterOS container via VNC protocol -and via SSH on localhost 2222 port. +(on localhost 25900 port) and via SSH (on localhost 2222 port). ## List of exposed ports diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b2c8fa2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3" + +services: + + routeros-6-42: + image: evilfreelancer/docker-routeros:6.42 + restart: unless-stopped + ports: + - "12222:22" + - "12223:23" + - "18728:8728" + - "18729:8729" + + routeros-6-43: + image: evilfreelancer/docker-routeros:6.43 + restart: unless-stopped + ports: + - "22223:23" + - "22222:22" + - "28728:8728" + - "28729:8729"