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

Cant use this image with traefik, Am I missing something? #39

Open
1mfaasj opened this issue Jan 28, 2021 · 0 comments
Open

Cant use this image with traefik, Am I missing something? #39

1mfaasj opened this issue Jan 28, 2021 · 0 comments

Comments

@1mfaasj
Copy link

1mfaasj commented Jan 28, 2021

Hi,

When I deploy the following YML it works if i go to 192.168.1.1:8008/hydra. However when I want to forward this ip and port with traefik (reversed proxy) to an external address/domain, its doesn't work. gets stuck in a loop. maybe because it exist in a bridge network mode, i dont know.

Any suggestions?

from: 192.168.1.1:8008/hydra
to: https://hydra.domain.com

the yml:

version: "3.4"
services:
  nordvpn:
    image: bubuntux/nordvpn
    container_name: nordvpn
    cap_add:
      - NET_ADMIN               # Required
      - SYS_MODULE              # Required for TECHNOLOGY=NordLynx
    sysctls:
      - net.ipv4.conf.all.rp_filter=2
    devices:
      - /dev/net/tun
    environment:
      - "[email protected]"
      - "PASS=mypassword"
      - CONNECT=Netherlands
      - TECHNOLOGY=NordLynx
      - TZ=Europe/Amsterdam
      - DEBUG=On

  hydra:
    image: linuxserver/nzbhydra2
    container_name: hydra
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Europe/Amsterdam
    volumes:
      - /share/docker/compose/appdata/hydra2:/config
      - /share/downloads:/downloads
    restart: always
    network_mode: service:nordvpn
    depends_on: 
      - nordvpn
   
  web:
    image: dperson/nginx
    links:
      - nordvpn:jackett
      - nordvpn:hydra
    depends_on:
      - jackett
      - hydra
    tmpfs:
      - /run
      - /tmp
      - /var/cache/nginx
    ports:
      - 8008:80
      - 4431:443
    command: -w  "http://hydra:5076/hydra;/hydra"

the logs look good, no errors or anything so I feel like something is missing in the YML file. related to networking/bridge at the nginx part.

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

1 participant