coolify icon indicating copy to clipboard operation
coolify copied to clipboard

Add dynamic traefik config volume

Open snimshchikov opened this issue 2 years ago • 3 comments

Can be used to make adjustments to traefik dynamic config As suggested in #779

snimshchikov avatar Dec 12 '22 15:12 snimshchikov

Hello, Just what I need too to publish services not managed by coolify. Anyone knows if there is a plan to merge this ? or an alternative ? Thanks

floco avatar Feb 11 '23 11:02 floco

Hello, Just what I need too to publish services not managed by coolify. Anyone knows if there is a plan to merge this ? or an alternative ? Thanks

I don't think that this is mergable. I opened it to make a statement that it is needed. If you want to replicate what I do here, you can replace traefik container with something like this (you need to stop the original before starting a new one, coolify will recreate the original in about one minute if no traefik is running)

docker run --restart always --add-host 'host.docker.internal:host-gateway' --add-host 'host.docker.internal:172.16.6.1' -v coolify-traefik-letsencrypt:/etc/traefik/acme -v ~/coolify-traefik-dynamic-config:/etc/traefik/dynamic  -v /var/run/docker.sock:/var/run/docker.sock  --network coolify-infra -p "80:80"  -p "443:443"  --name coolify-proxy  -d traefik:v2.8 --entrypoints.web.address=:80 --entrypoints.web.forwardedHeaders.insecure=true --entrypoints.websecure.address=:443 --entrypoints.websecure.forwardedHeaders.insecure=true --providers.docker=true --providers.docker.exposedbydefault=false --providers.http.endpoint=http://coolify:3000/webhooks/traefik/main.json --providers.http.pollTimeout=5s --certificatesresolvers.letsencrypt.acme.httpchallenge=true --certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json --certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web --log.level=error --providers.file.directory=/etc/traefik/dynamic/ --providers.file.watch=true

You can now place your config in ~/coolify-traefik-dynamic-config

snimshchikov avatar Feb 18 '23 00:02 snimshchikov

Many thanks @snimshchikov :-) I will try this.

floco avatar Feb 18 '23 06:02 floco

Thanks for the PR. 💜️
I would like to concentrate on v4. That is why I do not plan to add more features to v3.

This feature is available in v4 btw.

andrasbacsai avatar Sep 08 '23 07:09 andrasbacsai