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)
37 lines
751 B
YAML
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
|