Dokploy / dokploy

Open Source Alternative to Vercel, Netlify and Heroku.
https://dokploy.com/
Other
9.31k stars 459 forks source link

Getting 404 or Bad Gateway when trying to access a service via a domain using compose #734

Closed okatu-loli closed 2 days ago

okatu-loli commented 2 days ago

To Reproduce

  1. Create a application
  2. deploy vaultwarden with compose
  3. deploy and setting a domain
  4. access the service via a domain

Current vs. Expected behavior

I get 404 or Bad Gateway when accessing through the domain name image

I can access the correct service through ip+port access image

Provide environment information

Operating System:
  OS: Debian 12
  Arch: amd64
Dokploy version: v0.12.0'
VPS Provider: Dogyun (https://www.dogyun.com/)
What applications/services are you tying to deploy?:vaultwarden (https://github.com/dani-garcia/vaultwarden)

Which area(s) are affected? (Select all that apply)

Docker Compose, Traefik

Additional context

my domain setting image my compose raw

version: '3'

services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: always
    ports:
      - 38182:80
      # - 127.0.0.1:3012:3012
    environment:
      # WEBSOCKET_ENABLED: "true"
      DOMAIN: "https://~~~/"
      ICON_SERVICE: "bitwarden"
      DISABLE_ICON_DOWNLOAD: "true"
      ADMIN_TOKEN: "~~~"
      IP_HEADER: "X-Forwarded-For"
      SIGNUPS_ALLOWED: "false"

    volumes:
      - /opt/vw-data:/data
Siumauricio commented 2 days ago

Read here https://docs.dokploy.com/docs/core/troubleshooting#docker-compose-domain-not-working

okatu-loli commented 1 day ago

Read here https://docs.dokploy.com/docs/core/troubleshooting#docker-compose-domain-not-working

Thanks! I finally solved it.