Setup Pangolin with exisiting traefik instance #457
Replies: 4 comments 8 replies
-
traefik should exit through gerbil if you want a tunnel. gerbil:
image: fosrl/gerbil:1.0.0
container_name: gerbil
restart: unless-stopped
depends_on:
pangolin:
condition: service_healthy
command:
- --reachableAt=http://gerbil:3003
- --generateAndSaveKeyTo=/var/config/key
- --remoteConfig=http://pangolin:3001/api/v1/gerbil/get-config
- --reportBandwidthTo=http://pangolin:3001/api/v1/gerbil/receive-bandwidth
volumes:
- ./config/:/var/config
cap_add:
- NET_ADMIN
- SYS_MODULE
ports:
- 51820:51820/udp
- 443:443 # Port for traefik because of the network_mode
- 80:80 # Port for traefik because of the network_mode
traefik:
image: traefik:v3.3.3
container_name: traefik
restart: unless-stopped
network_mode: service:gerbil # Ports appear on the gerbil service
depends_on:
pangolin:
condition: service_healthy
command:
- --configFile=/etc/traefik/traefik_config.yml
volumes:
- ./config/traefik:/etc/traefik:ro # Volume to store the Traefik configuration
- ./config/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates
- ./config/traefik/logs:/var/log/traefik # Volume to store Traefik logs
|
Beta Was this translation helpful? Give feedback.
-
|
So I think I might have a solution, this will still have two traefik instances running but hopefully with as less frictions as possible:
This way pangolin should receive any traefik to that subdomain and can then handle its own routing without the need to configure every subdomain by hand. That would split pangolin from my main traefik instance and also allow for more fine-grain permissions/networking (like creating its own pangolin network). Pleas let me know of any concerns or tips or infos. Anyways, I will try it later this day... |
Beta Was this translation helpful? Give feedback.
-
|
i have same wonder, anyone made it work? |
Beta Was this translation helpful? Give feedback.
-
|
I would go for setting up HAProxy on the VPS as TCP loadbalancer in front of both Traefik containers like the blogger LinuxBabe is describing it in a sample post at: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey to everybody interested in the topic or trying to achieve the same thing.
Setup:
I have an existing server setup with docker and traefik and other services.
pangolin is full functional and accessible but my traefik instance is not able to route the VPN IPs of gerbil to the gerbil container.
And that seems to be not easily accomplished...
Any help hint or tips appreciated!
Beta Was this translation helpful? Give feedback.
All reactions