D
Dokployβ€’6mo ago
Daksh

Multi server setup - Dokploy on VPS, Server at home on old macbook

Hello. I'm trying to setup dokploy on my VPS to manage containers on my Mac. i have got the "server" (my mac) added successfully, i am able to open a remote terminal on dokploy for my mac. Docker is installed on my mac. when i attempt to deploy, it doesnt work. watch logs error πŸ‘‡
41 Replies
Daksh
DakshOPβ€’6mo ago
remote terminal:
No description
Daksh
DakshOPβ€’6mo ago
Daksh
DakshOPβ€’6mo ago
VPS is hosted with digital ocean. Macbook is on my home network. on my home network port 22 port forwarding is enabled. in the serve settings on dokploy i have put my user as Daksh (mac username) and the IP address is the IPv4 address of my mac which i got by going to one of those "what's my ip sites"
Daksh
DakshOPβ€’6mo ago
Daksh
DakshOPβ€’6mo ago
not sure if it makes a difference, but i have one image running on my macbook via docker desktop Bump. If anyone replies pls ping me
Siumauricio
Siumauricioβ€’6mo ago
the logs are clear i guess permission dennied
Daksh
DakshOPβ€’6mo ago
I am able to ssh from the remote terminal to my Mac tho
Siumauricio
Siumauricioβ€’6mo ago
anyways I don't know if dokploy can be compatible on mac, so I don't know the issues you can have yeah but read the logs permission denied to write in the logs
Daksh
DakshOPβ€’6mo ago
Ah dayum. I had deployed dokploy on my Mac, and it was working fine. But I would have really liked to have it hosted on my VPS and remotely manage Thanks for the reply
Siumauricio
Siumauricioβ€’6mo ago
I can't guarantee it will work, but if does awesome xD
Daksh
DakshOPβ€’6mo ago
Do you reckon I need to add something here ?
No description
Daksh
DakshOPβ€’6mo ago
(Firewall settings) I ain’t a dev or anything, a friend suggested dokploy and it was stupidly simple to set up and the UI is modern. I might have to go to portainer πŸ₯²
Aron
Aronβ€’6mo ago
You can run Dokploy and Portainer at the same time
Daksh
DakshOPβ€’6mo ago
i wanted to use either one, since dokploy is not working, i'll have to downgrade to portainer 🫠
Aron
Aronβ€’6mo ago
There seem to be multiple things going on and wrong here haha. If you can reach the mac from the VPS using SSH at port 22 manually, the timeout is odd. I can test it on my systems and servers tomorrow or tonight. To be clear, what you've done is simply: - VPS with Dokploy - Mac with port 22 exposed - Added Mac in VPS Dokploy instance as a server. If any steps are missing let me know please.
Daksh
DakshOPβ€’6mo ago
that's right. there was a step with SSH key generated on dokploy, and public key on Mac in between. (i'm not a dev first time doing this, so not sure what else is relevant)
I can test it on my systems and servers tomorrow or tonight.
thanks for that. please ping me whenever you get around to it!
Aron
Aronβ€’6mo ago
@Daksh For me, using Linux on the host and the second server, it's working properly.
Aron
Aronβ€’6mo ago
I set it up, created the ssh key (pubkey on second server) and ran the deployment. I also created a service on this new server. All working properly.
No description
Daksh
DakshOPβ€’6mo ago
Well good to know that it’s working for you, so it should work for me too Are you on an Apple silicon based Mac ? I’m on an intel one not sure if that makes a difference
Aron
Aronβ€’6mo ago
I'm on Linux x64. So your Mac is still running MacOS? Did you initiate the deployment in the setup?
Daksh
DakshOPβ€’6mo ago
Yeah, my Mac is still on Mac OS
Aron
Aronβ€’6mo ago
SSH from Dokploy is working for you so the ssh key is set up properly
Daksh
DakshOPβ€’6mo ago
And yes i did deploy the setup, no errors showing
Daksh
DakshOPβ€’6mo ago
No description
Aron
Aronβ€’6mo ago
On the mac, what do you see if you do "docker ps" Pretty odd, because I would guess it must be a permission or OS specific issue but then you should already have issues with the Setup deployment.
Daksh
DakshOPβ€’6mo ago
No description
Daksh
DakshOPβ€’6mo ago
ok... so even though it said "server setup successfully" i didn't... i've just seen that i can see the logs for deployment.
No description
Daksh
DakshOPβ€’6mo ago
Daksh
DakshOPβ€’6mo ago
any idea how i could trouble shoot from here? @Aron
Aron
Aronβ€’6mo ago
Ah yea. That clarifies a lot.
Daksh
DakshOPβ€’6mo ago
the toast notification lied to me 😒
Aron
Aronβ€’6mo ago
ss is a tool to check sockets on Linux. so that's missing yea. not sure why because there is no way docker gives an "OK" I can look into this. But not right now πŸ˜… . The issue here is simply that MacOS is not properly supported
Daksh
DakshOPβ€’6mo ago
yeah fair enoug hahah. thanks for your help though, i appreciate it. i think i'll look into removing macOS and installing linux (or getting a seperate NAS/home server thingy)
Aron
Aronβ€’6mo ago
Yea. If I have time i'll look into the MacOS support & get back here. From the logs you shared i'm not seeing any huge issues. But those issues could still crop up after the initial issues are resolved πŸ˜„
Daksh
DakshOPβ€’6mo ago
tbh, i don't think it's worth it anymore. worst comes to worst, i'll use portainer or something
Aron
Aronβ€’6mo ago
True. I'll do it just out of interest and support improvements for Dokploy as a whole πŸ˜„
Daksh
DakshOPβ€’6mo ago
@Aron i decided to dual boot linux (ubuntu 22) and got it up and running. getting an error when trying to install dokploy tho
root@mbpro:~# curl -sSL https://dokploy.com/install.sh | sh
Docker already installed
Node left the swarm.
Error response from daemon: must specify a listening address because the address to advertise is not recognized as a system address, and a system's IP address to use could not be uniquely identified
Error: Failed to initialize Docker Swarm
root@mbpro:~#
root@mbpro:~# curl -sSL https://dokploy.com/install.sh | sh
Docker already installed
Node left the swarm.
Error response from daemon: must specify a listening address because the address to advertise is not recognized as a system address, and a system's IP address to use could not be uniquely identified
Error: Failed to initialize Docker Swarm
root@mbpro:~#
i have docker installed I saw someone had a similar issue, followed their steps https://discord.com/channels/1234073262418563112/1308088116111740987/1313568357378818229 dokploy deployed now, but nothing shows up at the url
Aron
Aronβ€’6mo ago
If you apply that fix it will deploy at localhost or, should if you do docker ps in your terminal What do you get?
Daksh
DakshOPβ€’6mo ago
No description
Daksh
DakshOPβ€’6mo ago
now i feel a lil silly cuz it said to go to 127.0.0.1 i just wanna make sure now that it works, it will continue working, i'd rather troubleshoot and get the steps corrctly now than break my head later on
Sahel Jalal
Sahel Jalalβ€’4mo ago
Hi, it would be awesome if Dokploy supported mac in a multi server environment. I have several mac minis that I manually deploy and manage things with but discovered Coolify and Dokploy recently. Both appear to have the same issue and don't support macOS.

Did you find this page helpful?