access dokploy service on localhost with WSL2
hello, i already successfully install dokploy on my local machine using wsl2 with ubuntu, and tried to create directus as a example, but how i can access it?
i use auto generated domain but its not working
what i already doing:
port forwarding
add etc host on windows
try to access localhost:8055 and its not working
what should i do?
thanks in advance
5 Replies
@Daniel Tan Have you tried exposing the port like this?
Finally, it's working!
Thanks
hi folks, i have exactly same issue. tried to add a Wordpress template into my Dokploy local instance with WSL and ubuntu. but I added the port in compose file like 80:8081 (or 8081:80) but it doesn't local the page. it also created a MySql db docker container, how to setup this correctly? please provide more in details how to access different services in Dokploy on localhost.
First of all I think using dokploy on your local machine (doesn’t matter with wsl or vm) is the state of the art how dokploy will be used at most
Why you don’t try two same ports and connect to it? Like 8050:8050
if you using the template of wp it will be set up automatically
Which error you get there?
Thanks @sptzk I have got it working. Actually, the port setting in the docker compose need to be [host port]:[container port]. So in this Wordpress instance using your example, the port should be 8050:80. However, in the Domain settings of the project, port needs to be set as 80 and host is set to be localhost in my case. for those who are having similar question on this. here is my example in docker compose.
wordpress:
image: wordpress:latest
ports:
- 8050:80
restart: always