Hi Wapplers,
I am hoping someone can point me in the right direction.
I have a local development docker engine target (NodeJS) running Wappler on my Mac.
I have a remote Production docker engine target (NodeJS) running in a Digital Ocean Droplet.
This is working nicely. However…
I have on my same LAN another Mac that I want to use a Staging/Development mirror environment, this doesn’t have Wappler, but does have Docker. I can open up my router firewall to allow external access to this IP for testing.
Can someone help with the best way I can configure this.
I cannot work out how to do this in Wappler Target config. Is this setup possible?
Forgive me, but am I asking a real dumb question?
Surely other users have or required a similar config? Would it be easier to set the Hosting to Own Server and setup NodeJS on the other Mac and publish to a folder on that machine? Sorry, just never set this up before.
My opinion, is that your staging environment should mirror production in all aspects. So my recommendation is that your staging is also a remote production docker on DO. Staging is really a place to test production, so everything should match.
Thanks and I appreciate that @mebeingken, but what if I just want to have an environment to mirror my development system on my LAN? Is what I am asking not possible or at least not configurable within Wappler?
Stackoverflow answer: You should be able using the Docker Engine server option in Wappler.
Correct answer: Ken is right. You might as well just use another local target on your development laptop and stage there. You are basically achieving headaches and no real impact with the landscape you are proposing.
Thanks @JonL
Lets say I want to develop on my laptop and use the spare mac on the LAN as the production (open up firewall etc)
Is this possible? Should I install NodeJS on there? or can I deploy to a remote Docker LAN container?
That case would make more sense from a landscape perspective. You are going to need to learn the basics of self-hosting. Specially in terms of network and security.
I recommend /r/selfhost in Reddit as a good source of information on the topic. It's not just about opening a port. And you will need to do some due diligence on server hardening.
You can by using docker engine. There are a lot of tutorials out there that will explain how.
Wappler does facilitate part of the journey from the UI.
In the target chose docker engine as server and fill in the needed info for the remote deploy.
Really struggled with this today. Going to start all over again tomorrow.
Is this something that could be added to the Wappler UI, so that a Remote Docker target could be a Docker Desktop running on another LAN IP?
I set up a staging server on my lan a long time ago. It’s also exposed to the web through Traefik.
If you expose the docker API on the server you can pretty much control it from Wappler in the same way as your other environments. You can configure this on the server directly, or set up a docker container that exposes the API for you.
Can anyone help with portproxy/forwarding port 2375 on my Mac OSX machine IP back to 127.0.0.1? I have followed a couple of guides online, but its not working.
e.g.
echo "
rdr pass proto tcp from any to 192.168.86.111 port 2375 -> 127.0.0.1 port 2375
"
You are better off asking in more specialised forums. I would try with docker and selfhosting (sub)forums. Reddit and Stackoverflow seem like a good bet.
You might be able to get an answer or some support here but you might bump into further difficulties along the road and they will be able to help you better IMO.