Skip to content
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

Server does not bind to all network interfaces #106

Open
chazzbg opened this issue Jan 2, 2025 · 3 comments
Open

Server does not bind to all network interfaces #106

chazzbg opened this issue Jan 2, 2025 · 3 comments

Comments

@chazzbg
Copy link

chazzbg commented Jan 2, 2025

I have a setup where with docker compose i setup immich power tools to be part of two networks. one is the immich network, other one is the traefik network for the reverse proxying.

Here is a sample compose.yml

services:
  power-tools:
    container_name: immich-power-tools
    image: ghcr.io/varun-raj/immich-power-tools:latest
    restart: unless-stopped
    environment:
      IMMICH_API_KEY: # your_immich_api_key
      IMMICH_URL: "http://immich-server:2283" # Your immich instace ip address and port
      EXTERNAL_IMMICH_URL: "https://immich.external" # External address of immich
    networks:
      - traefik
      - immich
networks:
  immich:
    name: immich
  traefik:
    external: true
    

But when starting, immich power tools server does not bind to all the network interfaces. It binds to first available for it, which happens to be the immich network, and does not bind to traefik one, which results in a Bad gateway from the reverse proxy.

here is the log of the container of power tools

2025-01-02T09:12:40.952257000Z   ▲ Next.js 14.2.5

2025-01-02T09:12:40.952408000Z   - Local:        http://48d63b3c3973:3000

2025-01-02T09:12:40.952457000Z   - Network:      http://172.26.0.5:3000

2025-01-02T09:12:40.952524000Z 

2025-01-02T09:12:40.952575000Z  ✓ Starting...

2025-01-02T09:12:41.171530000Z  ✓ Ready in 228ms

Is there a way to specify to which ip the server will bind? or a fix in the code is needed ?

@heig
Copy link

heig commented Jan 26, 2025

I think i face the same issue when I try to deploy it on my swarm cluster. It's not available via the ingress network. Any ideas how to resolve this? thanks

@pieman3000
Copy link

This seems linked to #83

@chazzbg
Copy link
Author

chazzbg commented Feb 15, 2025

Yea, setting env var, as suggested in #83, seems to be working. This must be placed in the readme file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants