-
Notifications
You must be signed in to change notification settings - Fork 67
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
my slimmed down docker-compose.yml #20
Comments
Sorry for the delay. Can you explain what is messy ? Some notes about the current docker-compose.yaml :
Thank you. Some notes:
Which docker image are you using ? What are the parameters ? What is the content of your settings.yml ?
I have seen this kind of blow away on another project, but I haven't tried on this project. Thank you for the feed back. Is the blow away random or on specific container / case ? |
Traefik is really a pain to use and configure, it should be better to stay on Caddy. |
actually, i've switched to using kubernetes! https://github.com/travnewmatic/k8s-searx/blob/master/searx.yaml
i'd have to look for my traefik config. its not anything crazy. its almost identical to https://docs.traefik.io/v2.0/user-guides/docker-compose/acme-tls/
this is likely something i've borked. i'll need to take another look at it.
always the latest stable image from docker hub. content of settings.yml is whats its in that configmap section of that long k8s yaml thing (i know its hard to read with all the escapes and newlines that kubectl sticks in there). i've seen all the warnings about using watchtower + latest, so i can't really complain too much. one idea would be to make the searx settings file volume/mount read-only. though i'm not sure if that would fix it. since i've switched to kubernetes, the searx settings configmap thing is ALWAYS read only. updates to the image have no effect on the contents of that configmap. before i began migrating all my stuff from docker into kubernetes i didnt have any issues with traefik. i didnt really take full advantage of it. i didnt mess with dynamic config. i just had the main traefik docker-compose thing, and then stuck labels on all the things i needed it to proxy for. i started using it right around the time v2 came out so the documentation wasn't 100%, but its been around enough that i think doing most basic things should be easy to deal with. again, thanks for tall the hard work on this. i really love it and i use it daily. its also been a great learning tool for my sysadmin chops. setting it up helped me to learn more about docker/docker-compose and more recently kubernetes. truly one of my favorite projects out there :) |
For reference, there is another traefik configuration: |
this was always a thorn in my side. so i banged on it a bit and came up with this:
yields
This isn't a 1:1 of your https://github.com/searx/searx-docker/blob/master/Caddyfile headers, but it's closer than before. I think to get it to be a perfect copy of your Caddyfile, i'd need to create individual ingresses for searx and morty. What are your thoughts on the headers that i have included? Any glaring omissions? |
Hi, Some replies: middlewares.yml
traefik excerpt from docker-compose.yml
traefik.yml
Thought I'd drop these in, in case you fancied having a go with Traefik and to give some examples of some of the things you asked about. It's entirely possible to do it all with traefik. The argument over whether Caddy or Traefik is better is somewhat of a moot point I think; whichever you're familiar with the most is going to be the best for you. I would say that more people are familiar with Traefik though, and traefik has excellent docker integration. |
i'm no Docker Expert, but i think that your docker-compose.yml and scripts setup is a bit too.. messy. here is my docker-compose.yml:
its mostly based on your setup, but i've made a few changes.
are there any glaring issues with what i've done?
thanks for all the hard work on this awesome project, i use it every day!
The text was updated successfully, but these errors were encountered: