Self-host Searx with docker

1 minute read Published on:

Deployed a Searx with nginx-proxy and morty proxy support.

The docker-compose file:

version: '3'
services:
  searx:
    container_name: searx
    image: searx/searx:latest
    restart: unless-stopped
    depends_on:
      - morty
    command: -f
    volumes:
      - /path/to/searx:/etc/searx:rw
    environment:
      - MORTY_URL=https://searxhost.com/morty/
      - INSTANCE_NAME=searxinstancename
      - MORTY_KEY=MORTY_KEY
      - VIRTUAL_PORT=8080
      - VIRTUAL_HOST=searxhost.com
      - LETSENCRYPT_HOST=searxhost.com
      - BASE_URL=https://searxhost.com/
      - VIRTUAL_PATH=/
    cap_drop:
      - ALL
    cap_add:
      - CHOWN
      - SETGID
      - SETUID
      - DAC_OVERRIDE
    networks:
      - my-network
  morty:
    container_name: morty
    image: dalf/morty:latest
    restart: always
    command: -timeout 6 -ipv6
    environment:
      - MORTY_ADDRESS=0.0.0.0:3000
      - MORTY_KEY=MORTY_KEY
      - VIRTUAL_PORT=3000
      - VIRTUAL_HOST=searxhost.com
      - LETSENCRYPT_HOST=searxhost.com
      - VIRTUAL_PATH=/morty/
      - VIRTUAL_DEST=/morty/
    logging:
      driver: none
    # read_only: true
    cap_drop:
      - ALL
    networks:
      - my-network


networks:
  my-network:
    external: true

Other Settings:


123 words
Last Modified on: 2022-10-23
通过webmention回复这篇文章 | send me a webmention