Von lars, 3 Monate vorher, geschrieben in Bash.
[paste_expire] 1 Sekunde.
Einbetten
  1. version: '3.7'
  2.  
  3. services:
  4.  
  5. #  caddy:
  6. #    container_name: caddy
  7. #    image: abiosoft/caddy:1.0.3-no-stats
  8. #    ports:
  9. #      - 8090:80
  10. #      - 4449:443
  11. #    network_mode: host
  12. #    command: -email ${LETSENCRYPT_EMAIL} -agree=${LETSENCRYPT_AGREE} -log stdout -host ${SEARX_HOSTNAME} -conf /etc/Caddyfile
  13. #    volumes:
  14. #      - ./Caddyfile:/etc/Caddyfile:rw
  15. #      - ./caddy:/root/.caddy:rw
  16. #      - ./srv:/srv:rw
  17. #      - searx-checker:/srv/searx-checker:rw
  18. #    environment:
  19. #      - SEARX_HOSTNAME=${SEARX_HOSTNAME}
  20. #      - SEARX_PROTOCOL=${SEARX_PROTOCOL:-}
  21. #      - SEARX_TLS=${SEARX_TLS:-}
  22. #      - FILTRON_USER=${FILTRON_USER}
  23. #      - FILTRON_PASSWORD=${FILTRON_PASSWORD}#
  24. #    cap_drop:
  25. #      - ALL
  26. #    cap_add:
  27. #      - NET_BIND_SERVICE
  28. #      - DAC_OVERRIDE
  29.  
  30.   filtron:
  31.     container_name: filtron
  32.     image: dalf/filtron
  33.     hostname: filtron
  34.     restart: always
  35.     ports:
  36.       - 127.0.0.1:4040:4040
  37.       - 127.0.0.1:4041:4041
  38.     networks:
  39.       searx:
  40.         ipv4_address: 10.10.10.3
  41.     command: -listen 10.10.10.3:4040 -api 10.10.10.3:4041 -target 10.10.10.4:9010
  42.     volumes:
  43.       - ./rules.json:/etc/filtron/rules.json:rw
  44.     read_only: true
  45.     cap_drop:
  46.       - ALL
  47.  
  48.   searx:
  49.     container_name: searx
  50.     image: searx/searx:latest
  51.     hostname: searx
  52.     restart: always
  53.     ports:
  54.      - 127.0.0.1:9010:8080
  55.     networks:
  56.       searx:
  57.          ipv4_address: 10.10.10.4
  58.     command: ${SEARX_COMMAND:-}
  59.     volumes:
  60.       - ./searx/settings.yml:/etc/searx/settings.yml:ro
  61.       - ./searx/uwsgi.ini:/etc/searx/uwsgi.ini:ro
  62.       - ./searx/themes:/usr/local/searx/searx/themes:ro
  63.       - ./searx/templates:/usr/local/searx/searx/templates:ro
  64.       - ./searx/img:/usr/local/searx/searx/static/themes/oscar/img:ro
  65.     environment:
  66.       - BIND_ADDRESS=10.10.10.4:9010
  67.       - BASE_URL=https://${SEARX_HOSTNAME}/
  68.       - MORTY_URL=https://${SEARX_HOSTNAME}/morty/
  69.       - MORTY_KEY=${MORTY_KEY}
  70.     cap_drop:
  71.       - ALL
  72.     cap_add:
  73.       - CHOWN
  74.       - SETGID
  75.       - SETUID
  76.       - DAC_OVERRIDE
  77.  
  78.   morty:
  79.     container_name: morty
  80.     image: dalf/morty
  81.     hostname: morty
  82.     restart: always
  83.     ports:
  84.       - 127.0.0.1:3000:3000
  85.     networks:
  86.       searx:
  87.         ipv4_address: 10.10.10.5
  88.     command: -listen 10.10.10.5:3000 -timeout 6 -ipv6
  89.     environment:
  90.       - MORTY_KEY=${MORTY_KEY}
  91.       - DEBUG=true
  92.     read_only: true
  93.     cap_drop:
  94.       - ALL
  95.  
  96.   searx-checker:
  97.     container_name: searx-checker
  98.     image: searx/searx-checker
  99.     hostname: searx-checker
  100.     restart: always
  101.     networks:
  102.       searx:
  103.         ipv4_address: 10.10.10.6
  104.     command: -cron -o html/data/status.json http://10.10.10.4:9010
  105.     volumes:
  106.       - searx-checker:/usr/local/searx-checker/html/data:rw
  107.  
  108. networks:
  109.   searx:
  110.     ipam:
  111.       driver: default
  112.       config:
  113.         - subnet: 10.10.10.0/24
  114.  
  115. volumes:
  116.   searx-checker:
captcha