Cài đặt PHPNUXBill mikrotik container
Tạo lệnh chạy container nux bill trên container của máy PC mini router.
link tham khảo tại video: https://www.youtube.com/watch?v=oXm7-qSOYPw&t=13s
RouterOS cho pc x68 tại: https://github.com/elseif/MikroTikPatch/releases/tag/7.16.2
/interface veth
add address=172.16.1.2/24 gateway=172.16.1.1 gateway6="" name=pnb_network
/interface bridge
add name=container
/interface bridge port
add bridge=container interface=pnb_network
/ip address
add address=172.16.1.1/24 interface=container network=172.16.1.0
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN src-address=\
172.16.1.2
add action=dst-nat chain=dstnat dst-port=88 protocol=tcp to-addresses=\
172.16.1.2 to-ports=80
/system logging
add topics=container
/container/config/set registry-url=https://registry-1.docker.io tmpdir=/dockerpull
/container envs
add key=DB_DATABASE name=PHPNuxBill value=pnbrad
add key=DB_PASSWORD name=PHPNuxBill value=12345678
add key=DB_USERNAME name=PHPNuxBill value=pnb
add key=RADIUS_CLIENT name=PHPNuxBill value=0.0.0.0
add key=RADIUS_LOG_AUTH name=PHPNuxBill value=no
add key=RADIUS_SECRET name=PHPNuxBill value=halodunia
add key=ROOT_PASSWORD name=PHPNuxBill value=12345678
add key=TIME_ZONE name=PHPNuxBill value=Asia/Jakarta
add key=PATH name=PHPNuxBill value=\
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/container
add cmd=\
"'/usr/bin/supervisord' '-c' '/etc/supervisor/conf.d/supervisord.conf'" \
envlist=PHPNuxBill hostname=phpnuxbill interface=pnb_network logging=yes \
start-on-boot=yes remote-image=agstr/pnb:mt-container