postiz/stack.production.yml

59 lines
1.6 KiB
YAML

version: '3.7'
networks:
traefik:
external: true
default:
driver: overlay
services:
redis:
# image: docker.io/library/redis:alpine
image: git.nixc.us/colin/searxng:staging-redis
networks:
- default
- traefik
volumes:
- /mnt/tank/persist/nixc.us/searxng/redis:/data
deploy:
replicas: 1
placement:
constraints:
- node.hostname == ingress.nixc.us
# logging:
# driver: "gelf"
# options:
# gelf-address: "udp://log.nixc.us:15124"
# tag: "redis"
searxng:
# image: searxng/searxng:latest
image: git.nixc.us/colin/searxng:staging-searxng
networks:
- default
- traefik
volumes:
- /mnt/tank/persist/nixc.us/searxng/config:/etc/searxng:rw
environment:
- SEARXNG_BASE_URL=https://searx.nixc.us
deploy:
replicas: 1
placement:
constraints:
- node.hostname == ingress.nixc.us
labels:
traefik.docker.network: traefik
traefik.enable: "true"
traefik.http.routers.production _searxng.entrypoints: websecure
traefik.http.routers.production _searxng.rule: Host(`searx.nixc.us`)
traefik.http.routers.production _searxng.tls: "true"
traefik.http.routers.production _searxng.tls.certresolver: letsencryptresolver
traefik.http.services.production _searxng.loadbalancer.server.port: '8080'
traefik.http.routers.production _searxng.service: production _searxng
traefik.tags: traefik
# logging:
# driver: "gelf"
# options:
# gelf-address: "udp://log.nixc.us:15124"
# tag: "searxng"