mirror of
https://github.com/EvilFreelancer/docker-routeros.git
synced 2025-07-09 22:24:38 +02:00
sample of docker-compose.yml added, readme.md updated
This commit is contained in:
parent
ede7a6cbeb
commit
382f1bf594
2 changed files with 37 additions and 12 deletions
28
README.md
28
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
|
||||
|
||||
|
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue