docker-compose-configs/invidious/inv_sig_helper_cluster/docker-compose.yml
root 0483a238a4 Update inv_sig_helper configuration.
Since inv_sig_helper crashes a lot, it's better to run it under haproxy
with a healthcheck. Invidious connects to haproxy and haproxy connects
to inv_sig_helper.
(inv_sig_helper replicas -> haproxy -> invidious instances)
2024-09-27 16:41:47 -03:00

37 lines
751 B
YAML

services:
inv_sig_helper_cluster:
image: git.nadeko.net/fijxu/inv_sig_helper:master-4477ac8
restart: unless-stopped
mem_limit: "512m"
logging:
driver: none
init: true
command: ["--tcp", "0.0.0.0:12999"]
environment:
- RUST_LOG=info
deploy:
replicas: 8
networks:
- invidious
- gluetun_network
- gluetun_network_2
sig-haproxy:
image: haproxy:lts-alpine
restart: always
ports:
- "127.0.0.1:10095:8405"
volumes:
- ./haproxy:/usr/local/etc/haproxy
networks:
- invidious
- gluetun_network
- gluetun_network_2
networks:
invidious:
external: true
gluetun_network:
external: true
gluetun_network_2:
external: true