# Docker：部署自己的搜索引擎SearXNG

咕咕鸽最近又更新了一期搭建SearXNG的教程，咱也跟着咕咕鸽的教程折腾一下

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45

    version: '3.7'
    services:
      redis:
        container_name: redis_searxng
        image: "redis:alpine"
        command: redis-server --save "" --appendonly "no"
        networks:
          - searxng
        tmpfs:
          - /var/lib/redis
        cap_drop:
          - ALL
        cap_add:
          - SETGID
          - SETUID
          - DAC_OVERRIDE

      searxng:
        container_name: searxng
        image: searxng/searxng:latest
        networks:
          - searxng
        ports:
          - "8180:8080"   # 这个冒号左边的端口可以更改，右边的不要改
        volumes:
          - ./searxng:/etc/searxng:rw
        environment:
          - SEARXNG_HOSTNAME=s.limour.top
          - SEARXNG_BASE_URL=https://s.limour.top/
        cap_drop:
          - ALL
        cap_add:
          - CHOWN
          - SETGID
          - SETUID
          - DAC_OVERRIDE
        logging:
          driver: "json-file"
          options:
            max-size: "1m"
            max-file: "1"
    networks:
      searxng:
        ipam:
          driver: default

- mkdir -p ~/searxng && cd ~/searxng
- nano docker-compose.yml
- sudo docker-compose up -d
- sudo docker-compose logs
- NPM面板反代8180端口，并设置域名解析。
- sudo docker-compose down
- sed -i “sultrasecretkey$(openssl rand -hex 32)g” searxng/settings.yml # 生成一个密钥
- sudo docker-compose up -d

开源
Docker：部署自己的搜索引擎SearXNG
https://occdn.limour.top/2177.html
Author
Limour
Posted on
July 31, 2022
Licensed under
通过VMware构建本博客使用的生信处理环境 Previous
【翻译】利用大队列对前列腺癌预后的机器学习模型和基因表达特征进行综合评价 Next

#### Search

Keyword