-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
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:
version: '3.7'
services:
filtron:
image: dalf/filtron
restart: always
networks:
- default
- traefik_default
command: -listen 0.0.0.0:4040 -api 0.0.0.0:4041 -target searx:8080
volumes:
- ./rules.json:/etc/filtron/rules.json:rw
read_only: true
cap_drop:
- ALL
labels:
- "traefik.enable=true"
- "traefik.http.routers.filtron.rule=Host(`searx.travnewmatic.com`)"
- "traefik.http.routers.filtron.entrypoints=websecure"
- "traefik.http.routers.filtron.tls.certresolver=mytlschallenge"
- "traefik.docker.network=traefik_default"
- "traefik.http.services.filtron.loadbalancer.server.port=4040"
searx:
image: searx/searx:latest
restart: always
depends_on:
- filtron
- morty
networks:
- tor-hidden-service_default
- default
command: -f
volumes:
- ./searx:/etc/searx:rw
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
- DAC_OVERRIDE
morty:
image: dalf/morty
restart: always
networks:
- default
- traefik_default
command: -listen 0.0.0.0:3000 -timeout 6 -ipv6
environment:
- MORTY_KEY=e63wDcpbTfRQj51Utf2BK5Isd6wDh/dD4Z46bmMUno6N
read_only: true
cap_drop:
- ALL
labels:
- "traefik.enable=true"
- "traefik.http.routers.morty.rule=Host(`searx.travnewmatic.com`) && PathPrefix(`/morty`)"
- "traefik.http.routers.morty.entrypoints=websecure"
- "traefik.http.routers.morty.tls.certresolver=mytlschallenge"
- "traefik.docker.network=traefik_default"
- "traefik.http.services.morty.loadbalancer.server.port=3000"
networks:
traefik_default:
external: true
tor-hidden-service_default:
external: true
its mostly based on your setup, but i've made a few changes.
- using traefik instead of caddy
- searx is sending queries through a separate TOR container
- watchtower upgrades things when a new image is available (sometimes blowing away my config, but thats why i use a repo)
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!
cwildfoerster, MoriarT3a and paulcalabro
Metadata
Metadata
Assignees
Labels
No labels