Menjalankan Mikrotik di Docker: Difference between revisions

From Corat Coret
(Created page with " File: docker-compose.yaml <syntaxhighlight lang="docker"> version: "3" services: routerOsDocker: image: dharma007/mikrotik-cloud:latest restart: unless-stopped cap_add: - NET_ADMIN devices: - /dev/net/tun ports: - 8291:8291 - 443:443 - 20022:22 - 8088:80 </syntaxhighlight> Ports: * 8291 Winbox * 443 HTTPS * 80 HTML Service * 22 SSH Bisa ditambahkan sesuai keperluan")
 
No edit summary
 
Line 14: Line 14:
       - /dev/net/tun
       - /dev/net/tun
     ports:
     ports:
       - 8291:8291
       - 28291:8291
       - 443:443
       - 20443:443
       - 20022:22
       - 20022:22
       - 8088:80
       - 28088:80
</syntaxhighlight>
</syntaxhighlight>


Ports:
Ports:
* 8291 Winbox
<pre>
* 443 HTTPS
28291 Winbox
* 80  HTML Service
20443 HTTPS
* 22 SSH
20088 HTML Service
20022 SSH
</pre>


Bisa ditambahkan sesuai keperluan
Bisa ditambahkan sesuai keperluan

Latest revision as of 08:08, 22 June 2024

File: docker-compose.yaml

version: "3"

services:

  routerOsDocker:
    image: dharma007/mikrotik-cloud:latest
    restart: unless-stopped
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun
    ports:
      - 28291:8291
      - 20443:443
      - 20022:22
      - 28088:80

Ports:

28291 Winbox
20443 HTTPS
20088 HTML Service
20022 SSH

Bisa ditambahkan sesuai keperluan