Last updated on March 19, 2024 pm
部署 SearXNG
1 2 3 4 5 6 7 8 9
| mkdir -p ~/app/SearXNG && cd ~/app/SearXNG && nano docker-compose.yml sudo docker-compose up -d sudo docker-compose logs
sudo docker-compose down sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" searxng/settings.yml sudo nano searxng/settings.yml
sudo docker-compose up -d
|
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
|
部署 morty
1 2 3 4
| mkdir -p ~/app/morty && cd ~/app/morty && nano docker-compose.yml sudo docker-compose up -d
|
1 2 3 4 5 6 7 8 9 10 11
| version: '3.3' services: morty: environment: - DEBUG=false - 'MORTY_ADDRESS=0.0.0.0:3000' image: dalf/morty restart: always ports: - '3000:3000' command: -timeout 60 -ipv6=false
|
【迁移】SearXNG:开启morty
https://hexo.limour.top/SearXNG-kai-qi-morty