Port issue

I would imagine what I'm experiencing is a port issue. This is what I've set the ports to, the host is correct I do have my own domain name I want to use but first I want to get it working with a generated traefik one and it isn't working. My website just says Bad Gateway. The environment variables are set on the dashboard so that isn't it either. Can send full code if want to see it
No description
No description
No description
3 Replies
jordans231
jordans231OP7mo ago
No description
Catur
Catur7mo ago
I feel like your container is not using the port correctly, remember that NGINX runs on port 80, try the config .yml below to test NGINX on your compose file, then point your domain to your server.
networks:
dokploy-network:
external: true

services:
web:
image: nginx:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.testing.entrypoints=websecure"
- "traefik.http.routers.testing.tls.certResolver=letsencrypt"
networks:
dokploy-network:
external: true

services:
web:
image: nginx:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.testing.entrypoints=websecure"
- "traefik.http.routers.testing.tls.certResolver=letsencrypt"
In my opinion, as long as you use Dokploy, you don't need NGINX for your reverse proxy anymore, we only need to set the domain directly in Dokploy. Why on your api service, you use php:8.2-fpm image? I don't understand what you mean, I think you need to include your application image. Hope that answers your question, correct me if I'm wrong.
jordans231
jordans231OP7mo ago
So stupid! That was it bro. I took the documentation to literally and thought I had to change my port to 3000! Thanks man you saved me a lot of time!

Did you find this page helpful?