-
-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant reach my App by assigned Domain #1190
Comments
Oh yeah! I have exactly the same situation. Hosting on hostinger and domain on CF and on hostinger. I can't get it to work, the application is simply not available on the domain. Maybe the problem is in the hosting itself? |
Finally solved it :D As written here You have to declare ports in compose file like this: Also before that in Cloudflare I changed SSL mode from Full to Full (Strict) as told here - after this step the domain did not start to work yet, but maybe also contributed to the final solution Now both of my domains work and open the app 😎 |
ok... I deployed another app with Dokploy and the domains from cloudflare just stopped working... |
found a new solution, hope this time it will continue to work instead of randomly working, then not working, then working again.... #821 (comment) I am grateful for this tool but it should take less then 3 days to setup it and debug... trying different solutions, different domains, different servers... I am lucky I found this issue and solution after checking all the open issues started to dig into closed ones. |
I will add the missing line to traefik.yml for new installations, for existing installations you will need to add manually, thanks for pointing out! |
To Reproduce
I deployed my app as Compose service.
I added custom subdomain.domain.com to reach my app - but it dosnt work. When I open the url I see only 404 page not found
Tried another domain, one managed on Cloudflare, another on Hostinger - both dont work.
I opened in firewall port 3005 and I can reach my app with URL myip:3005 - so the app is working
I configured to reach the dashboard on server.mydomain.com - its working fine
If I press "Preview Compose" - I see that dokploy-network and labels are automatically added. But I still cant reach the app through domain...
Tried to redeploy multiple times
my compose file looks like this:
services:
backend:
container_name: back-v1
build:
context: .
args:
NODE_ENV: ${NODE_ENV}
PORT: ${PORT}
ports:
- '3005:3005'
env_file:
- .env
volumes:
- ./media:/home/node/app/dist/media
networks:
- back_network
- mongo_network
- dokploy-network
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.backas-8db9ud-2-web.rule=Host(
subdomain.domain.com
)- traefik.http.routers.backas-8db9ud-2-web.entrypoints=web
- traefik.http.services.backas-8db9ud-2-web.loadbalancer.server.port=3005
- traefik.http.routers.backas-8db9ud-2-web.service=backas-8db9ud-2-web
- traefik.http.routers.backas-8db9ud-2-web.middlewares=redirect-to-https@file
- traefik.http.routers.backas-8db9ud-2-websecure.rule=Host(
subdomain.domain.com
)- traefik.http.routers.backas-8db9ud-2-websecure.entrypoints=websecure
- traefik.http.services.backas-8db9ud-2-websecure.loadbalancer.server.port=3005
- traefik.http.routers.backas-8db9ud-2-websecure.service=backas-8db9ud-2-websecure
- traefik.http.routers.backas-8db9ud-2-websecure.tls.certresolver=letsencrypt
- traefik.http.routers.backas-8db9ud-3-web.rule=Host(
subdomain.domain2.com
)- traefik.http.routers.backas-8db9ud-3-web.entrypoints=web
- traefik.http.services.backas-8db9ud-3-web.loadbalancer.server.port=3005
- traefik.http.routers.backas-8db9ud-3-web.service=backas-8db9ud-3-web
- traefik.http.routers.backas-8db9ud-3-web.middlewares=redirect-to-https@file
- traefik.http.routers.backas-8db9ud-3-websecure.rule=Host(
subdomain.domain2.com
)- traefik.http.routers.backas-8db9ud-3-websecure.entrypoints=websecure
- traefik.http.services.backas-8db9ud-3-websecure.loadbalancer.server.port=3005
- traefik.http.routers.backas-8db9ud-3-websecure.service=backas-8db9ud-3-websecure
- traefik.http.routers.backas-8db9ud-3-websecure.tls.certresolver=letsencrypt
networks:
back_network:
name: back_network
external: false
mongo_network:
external: true
dokploy-network:
external: true
Current vs. Expected behavior
I expect to reach my app by the domain that I provided, but I cant.
I can only reach by myip:3005 over http
Provide environment information
Which area(s) are affected? (Select all that apply)
Docker Compose, Traefik
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
No
The text was updated successfully, but these errors were encountered: