searxng-docker/docker-compose.yaml

59 lines
1.2 KiB
YAML

version: '3.7'
services:
caddy:
image: abiosoft/caddy:no-stats
ports:
- 80:80
- 443:443
networks:
searx:
ipv4_address: 10.10.10.2
command: -email ${LETSENCRYPT_EMAIL} -agree=true -log stdout -host ${SEARX_HOSTNAME} -conf /etc/Caddyfile
volumes:
- ./Caddyfile:/etc/Caddyfile
- ./caddy:/root/.caddy
environment:
- SEARX_HOSTNAME=${SEARX_HOSTNAME}
# filtron:
# image: filtron
# hostname: filtron
# restart: always
# networks:
# searx:
# ipv4_address: 10.10.10.3
searx:
image: searx
hostname: searx
restart: always
networks:
searx:
ipv4_address: 10.10.10.4
volumes:
- ./searx:/etc/searx
environment:
- BASE_URL=https://${SEARX_HOSTNAME}/
- MORTY_URL=https://${SEARX_HOSTNAME}/morty/
- MORTY_KEY=${MORTY_KEY}
morty:
image: morty
hostname: morty
restart: always
networks:
searx:
ipv4_address: 10.10.10.5
command: -listen 10.10.10.5:3000
environment:
- MORTY_KEY=${MORTY_KEY}
networks:
searx:
ipam:
driver: default
config:
- subnet: 10.10.10.0/24