How can I host on Dokploy port 80?
I'm trying to host a page on port 80 of Dokploy my host. I've tried different ways but keep failing. Can someone show me an example?
29 Replies
https://github.com/Dokploy/dokploy/blob/canary/apps/dokploy/templates/nextcloud-aio/docker-compose.yml
nextcloud template is running on port 80
Take it as a sample and create a domain to the container on port 80 π
GitHub
dokploy/apps/dokploy/templates/nextcloud-aio/docker-compose.yml at ...
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy
@DJKnaeckebrot ok thanks but how do i make sure the host port 80 maps to container port 80?
because when i go to the root of my domain there is no page


Is that domain also the same you use to access dokploy?
Also did you check that your containers are running ?
yes!
they are running
Can you show me the log please? Also what application are you running?
docker-compose.yml:
dokploy.yml
Initializing deployment
Clonning Repo github.com/zzzzzzzzzz/northflank-dashboard.git to /etc/dokploy/compose/port-80-ok-4wfqrr/code: β
Cloning into '/etc/dokploy/compose/port-80-ok-4wfqrr/code'...
remote: Enumerating objects: 4, done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Cloned github.com/zzzzzzzz/northflank-dashboard.git: β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β App Name: port-80-ok-4wfqrr β
β Build Compose π³ β
β Detected: 0 mounts π β
β Command: docker compose -p port-80-ok-4wfqrr -f ./docker-compose.yml up -d β
β --build --remove-orphans β
β Source Type: docker github β
β
β Compose Type: docker-compose β
β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
time="" level=warning msg="/etc/dokploy/compose/port-80-ok-4wfqrr/code/docker-compose.yml: the attribute
version
is obsolete, it will be ignored, please remove it to avoid potential confusion"
Container port-80-ok-4wfqrr-web-1 Running
Docker Compose Deployed: β

@DJKnaeckebrot
there is no need to publicly open ports by using 8080:80, this will only lead to port conflics.
it recommended to use a different format
https://docs.dokploy.com/docs/core/troubleshooting#docker-compose-domain-not-working
Troubleshooting | Dokploy
Solve the most common problems that occur when using Dokploy.
but out of curiosity, what type of app are you hosting when ypu need an apache?
Sorry, i changed it to just 80
it is still the same, even after rebuild and redeploy
just a single html page
i don't mind how i do it, i just want to be able to host a static page
I think you might can to it in a different way
ok i am happy for any suggestion
i've not yet done it, lemme just try it out on one of my servers π
:D thanks for your help
i realise most people don't want to deploy apps on port 80
on the root domain
yeah usually if you wanna have multiple apps you wanna move them to different ports and add a reverse proxy
in that way you dont waste a whole webserver instance for just one app
well you might want one app on foo.bar and then another app on app2.foo.bar
not sure why that should be a problem
ok got it running
do you host your source code on github?
yes
but i don't mind in this case, it could be a file on the host
prefer github though
what solution worked for you?
it got it running on gh
lemme just make some screen for you to replicate
First you need to create an application and not a compose
In that new application you select github as source code provider. You choose your repo and branch.
I build type, set it to Static
On the domain Tab create a domain and point it to Port 80 π
After that just deploy and it should work


wow amazing it worked!
thank you so much!
so to recap, static pages will work but not docker compose?
im happy with this btw
You prob can get this running but its a harder way than just using an application π Also as an FYI, if you ever add more servers to your install and create a swarm applications will be spread over the docker swarm which is better than a compose that will only run on 1 server π
You're welcome π
π
Sadly after deleting project and following these instructions again, it's not working π΅βπ«
If I add
localhost
to Domains page, i can successfully reach it using curl localhost

but others are not reachable
However, i know dns address is not a problem because I can access on another port such as 3001
App with 80 is up
Is there any way to debug traefik?
Nevermind sorted it out i think
What did you find out?
I just got back