diff --git a/stack.production.yml b/stack.production.yml new file mode 100644 index 0000000..c1a7c6b --- /dev/null +++ b/stack.production.yml @@ -0,0 +1,58 @@ +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" diff --git a/stack.yml b/stack.yml deleted file mode 100644 index 071d777..0000000 --- a/stack.yml +++ /dev/null @@ -1,56 +0,0 @@ -version: '3.7' - -networks: - traefik: - external: true - default: - driver: overlay - -services: - redis: - image: docker.io/library/redis:alpine - 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 - 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.searxng_searxng.entrypoints: websecure - traefik.http.routers.searxng_searxng.rule: Host(`searx.nixc.us`) - traefik.http.routers.searxng_searxng.tls: "true" - traefik.http.routers.searxng_searxng.tls.certresolver: letsencryptresolver - traefik.http.services.searxng_searxng.loadbalancer.server.port: '8080' - traefik.http.routers.searxng_searxng.service: searxng_searxng - traefik.tags: traefik - logging: - driver: "gelf" - options: - gelf-address: "udp://log.nixc.us:15124" - tag: "searxng"