I'm encountering an issue with deploying a Docker container on my Mikrotik router. After starting it, it shuts down within a few seconds, and the only thing I see in the logs is the following:
Code: Select all
My logs:
10:13:41 container,info,debug node:internal/modules/cjs/loader:1080
10:13:41 container,info,debug throw err;
10:13:41 container,info,debug ^
10:13:41 container,info,debug
10:13:41 container,info,debug Error: Cannot find module '/bin/www'
10:13:41 container,info,debug at Module._resolveFilename (node:internal/modules
/cjs/loader:1077:15)
10:13:41 container,info,debug at Module._load (node:internal/modules/cjs/loader
:922:27)
10:13:41 container,info,debug at Function.executeUserEntryPoint [as runMain] (n
ode:internal/modules/run_main:86:12)
10:13:41 container,info,debug at node:internal/main/run_main_module:23:47 {
10:13:41 container,info,debug code: 'MODULE_NOT_FOUND',
10:13:41 container,info,debug requireStack: []
10:13:41 container,info,debug }
10:13:41 container,info,debug
10:13:41 container,info,debug Node.js v18.18.
My /container export:
/container mounts
add dst=/etc/dnsmasq.d name=dnsmasq_pihole src=/usb1/pihole/dnsmasq.d
add dst=/etc/pihole name=etc_pihole src=/usb1/pihole/etc
add dst=/var/lib/zerotier-one name=controller_zero-ui src=/usb1/zero-ui/zerotier-one
add dst=/app/backend/data name=main_zero-ui src=/usb1/zero-ui/data
/container
add envlist=pihole_envs interface=container01 mounts=dnsmasq_pihole,etc_pihole root-dir=usb1/containers/pihole start-on-boot=yes
add domain-name=zu-controller envlist=zero-ui_controller hostname=zu-controller interface=container02 mounts=controller_zero-ui root-dir=usb1/containers/zero-ui/zu-controller
add domain-name=zu-main envlist=zero-ui_main hostname=zu-main interface=container03 logging=yes mounts=main_zero-ui root-dir=usb1/containers/zero-ui/zu-main
/container config
set registry-url=https://registry-1.docker.io/ tmpdir=usb1/pull
/container envs
add key=TZ name=pihole_envs value=Europe/Warsaw
add key=DNSMASQ_USER name=pihole_envs value=root
add key=WEBPASSWORD name=pihole_envs value=Telewizor12
add key=ZT_OVERRIDE_LOCAL_CONF name=zero-ui_controller value=true
add key=ZT_ALLOW_MANAGEMENT_FROM name=zero-ui_controller value=0.0.0.0/0
add key=ZU_CONTROLLER_ENDPOINT name=zero-ui_main value=http://zerotier:9993/
add key=ZU_SECURE_HEADERS name=zero-ui_main value=false
add key=ZU_DEFAULT_USERNAME name=zero-ui_main value=admin
add key=ZU_DEFAULT_PASSWORD name=zero-ui_main value=zero-ui
add key=DOCKER_OPTS name=zero-ui_main value="--link zu-controller:zerotier"
Code: Select all
docker run -d \
--name zu-controller \
--restart unless-stopped \
-v $(pwd)/zerotier-one:/var/lib/zerotier-one \
-e ZT_OVERRIDE_LOCAL_CONF=true \
-e ZT_ALLOW_MANAGEMENT_FROM=0.0.0.0/0 \
-p 9993:9993/udp \
zyclonite/zerotier:1.10.6
docker run -d \
--name zu-main \
--restart unless-stopped \
--volume $(pwd)/zerotier-one:/var/lib/zerotier-one \
--volume $(pwd)/data:/app/backend/data \
-e ZU_CONTROLLER_ENDPOINT=http://zerotier:9993/ \
-e ZU_SECURE_HEADERS=false \
-e ZU_DEFAULT_USERNAME=admin \
-e ZU_DEFAULT_PASSWORD=zero-ui \
-p 4000:4000 \
--link zu-controller:zerotier \
dec0dos/zero-ui:latest
Does anyone have any suggestions or insights on how to achieve similar functionality in this environment? ://