Wappler v5.8.2
MacOS
Context: Adding Caddy server to wappler-compose
Manually adding a service without image to wappler-compose causes to hang:
Unzip to wappler-compose folder: (contains Dockerfile to build Caddy)
caddy-build.zip (349 Bytes)
Modify docker-compose of wappler-compose to have this:
version: '3'
services:
caddy:
build:
context: ./caddy-build
dockerfile: Dockerfile
ports:
- 80:80
- 443:443
environment:
#- CADDY_INGRESS_NETWORKS=caddy
- CADDY_INGRESS_NETWORKS=proxy
networks:
# - caddy
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
restart: 'unless-stopped'
portainer:
image: 'portainer/portainer-ce:latest'
command: '-H unix:///var/run/docker.sock'
restart: 'always'
ports:
- '9000:9000'
- '8000:8000'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- 'portainer_data:/data'
logging:
options:
max-file: '5'
max-size: '10m'
networks:
proxy: ~
volumes:
portainer_data: ~
networks:
proxy: ~
Click to see error log
TypeError: Cannot read properties of undefined (reading ‘includes’) at file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:97403 at $each (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jQuery/js_lib.js:588:10) at file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:97376 at $each (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jQuery/js_lib.js:588:10) at f (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:97351) at file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:97284 at Object.onDemand (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:99851) at Object.core.data (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2dw/w2jsTree.js:8:1888) at Object._load_node (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:18271) at Object.load_node (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:16800) at Object._load_nodes (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:17618) at Object.s (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:17441) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:17366) at Object.proxy (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:10780:13) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:18456) at Object.n (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:26476) at Object._append_json_data (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:27396) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:18390) at proxy (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:10780:13) at S.addDockerServices (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:100255) at S.loadProviderResource (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:89517) at Object.onDemand (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:55825) at Object.core.data (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2dw/w2jsTree.js:8:1888) at Object._load_node (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:18271) at Object.load_node (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:16800) at Object._load_nodes (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:17618) at Object.s (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:17441) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:17366) at Object.proxy (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:10780:13) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:18456) at Object.n (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:26476) at Object._append_json_data (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:27396) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:18390) at proxy (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:10780:13) at file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:56003 at Object.onDemand (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/serversManager.js:8:56008) at Object.core.data (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2dw/w2jsTree.js:8:1888) at Object._load_node (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:18271) at Object.load_node (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:16800) at Object._load_nodes (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:17618) at Object.set_state (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:49362) at Object.restore_state (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:125139) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:124408) at HTMLDivElement.proxy (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:10780:13) at HTMLDivElement.dispatch (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:5430:27) at HTMLDivElement.elemData.handle (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:5234:28) at Object.trigger (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:8719:12) at jQuery.fn.init.triggerHandler (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:8803:24) at Object.trigger (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:12238) at Object. (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.js:8:9613) at proxy (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:10780:13) at sentryWrapped (/Applications/Wappler.app/Contents/Resources/app/node_modules/@sentry/browser/dist/helpers.js:75:23)
Attempted solution:
Added “image” property, which works, but “build” is ignored entirely, not what we want… (custom Dockerfile to install plug-ins)
Edit 2: Worked around by providing non-existing image name, it’ll give a warning but attempt to build