Skip to content

[bug]: Proxy no working with docker-compose #3553

Closed

Description

@davaxi

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When using docker-compose, in all instance set automaticly HOSTNAME variable with docker instance name. BUT in node app web/server.js we have :

const currentPort = parseInt(process.env.PORT, 10) || 3000
const hostname = process.env.HOSTNAME || '0.0.0.0'

And service never listen 0.0.0.0. Need using other name (and PORT)

Steps to reproduce

Simple lanch docker-compose and try to access with other proxy to docker (traefikfor exemple)

Browser

Google Chrome

Version

Self-hosted

Activity

  1. added
    🐛bug
    on Feb 2, 2024
  2. davaxi commented on Feb 2, 2024

    @davaxi
    Author

    Same problème with space/server.js

  3. mguptahub commented on Feb 6, 2024

    @mguptahub
    Contributor

    @davaxi

    I am interested to know what are we trying to achieve here? Why do you want to hit WEB & SPACE directly from any ip instead of using proxy ?

    While I use docker compose, it works perfectly fine for me.

    nginx is able to proxy the request to web & spaces containers.

    If you are looking at using traefik, i can provide you the sample docker-compose.yml I created few days back.

  4. mguptahub commented on Feb 19, 2024

    @mguptahub
    Contributor

    Closing this issue as there is no response from the author.

  5. vansergen commented on Jun 14, 2024

    @vansergen

    @davaxi It works with traefik as well.

  6. pcasad commented on Jan 10, 2025

    @pcasad

    @davaxi

    I am interested to know what are we trying to achieve here? Why do you want to hit WEB & SPACE directly from any ip instead of using proxy ?

    While I use docker compose, it works perfectly fine for me.

    nginx is able to proxy the request to web & spaces containers.

    If you are looking at using traefik, i can provide you the sample docker-compose.yml I created few days back.

    Hey! @mguptahub if you could give me the docker-compose with traefik you're mentionning, that'd be greatly helpful, I've been struggling with CORS related issues after doing compose up (Plane didn't start up screen with 404 on /api/instances,
    /api/users etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🏠self-hosted🐛bug🐳docker

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions