ponysearch-docker/docker-compose.yaml

87 lines
1.7 KiB
YAML
Raw Normal View History

2019-07-01 16:26:12 +02:00
version: '3.7'
services:
caddy:
container_name: caddy
image: caddy:2-alpine
2021-03-29 11:54:10 +02:00
restart: on-failure
network_mode: host
2019-07-01 16:26:12 +02:00
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data:rw
- caddy-config:/config:rw
environment:
2021-10-01 09:42:00 +02:00
- SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-localhost}
- SEARXNG_TLS=${LETSENCRYPT_EMAIL:-internal}
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
2019-07-06 16:37:18 +02:00
- DAC_OVERRIDE
2019-07-01 16:26:12 +02:00
filtron:
container_name: filtron
image: dalf/filtron
restart: always
ports:
- "127.0.0.1:4040:4040"
- "127.0.0.1:4041:4041"
networks:
2021-10-01 09:42:00 +02:00
- searxng
command: -listen 0.0.0.0:4040 -api 0.0.0.0:4041 -target searxng:8080
volumes:
- ./rules.json:/etc/filtron/rules.json:rw
read_only: true
cap_drop:
- ALL
2019-07-01 16:26:12 +02:00
2021-10-01 09:42:00 +02:00
searxng:
container_name: searxng
image: searxng/searxng:latest
restart: always
2019-07-01 16:26:12 +02:00
networks:
2021-10-01 09:42:00 +02:00
- searxng
command: ${SEARXNG_COMMAND:-}
2019-07-01 16:26:12 +02:00
volumes:
- ./searxng:/etc/searxng:rw
2019-07-01 16:26:12 +02:00
environment:
- BIND_ADDRESS=0.0.0.0:8080
2021-10-01 09:42:00 +02:00
- BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
- MORTY_URL=https://${SEARXNG_HOSTNAME:-localhost}/morty/
2019-07-01 16:26:12 +02:00
- MORTY_KEY=${MORTY_KEY}
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
2019-07-06 16:37:18 +02:00
- DAC_OVERRIDE
2019-07-01 16:26:12 +02:00
morty:
container_name: morty
image: dalf/morty
restart: always
ports:
- "127.0.0.1:3000:3000"
2019-07-01 16:26:12 +02:00
networks:
2021-10-01 09:42:00 +02:00
- searxng
2020-07-30 20:42:47 +02:00
command: -timeout 6 -ipv6
2019-07-01 16:26:12 +02:00
environment:
- MORTY_KEY=${MORTY_KEY}
2020-07-30 20:42:47 +02:00
- MORTY_ADDRESS=0.0.0.0:3000
logging:
driver: none
read_only: true
cap_drop:
- ALL
2019-07-01 16:26:12 +02:00
networks:
2021-10-01 09:42:00 +02:00
searxng:
2019-07-01 16:26:12 +02:00
ipam:
driver: default
volumes:
caddy-data:
caddy-config: