607 lines
18 KiB
YAML
607 lines
18 KiB
YAML
# Docker compose file for ${DOMAIN}
|
|
|
|
services:
|
|
valkey:
|
|
image: valkey/valkey:7.2-alpine
|
|
container_name: invidious-valkey-vpn
|
|
restart: unless-stopped
|
|
volumes:
|
|
- invidious-valkey-vpn:/data"
|
|
networks:
|
|
gluetun_network:
|
|
ipv4_address: 172.80.0.20
|
|
|
|
# INVIDIOUS CLEARNET
|
|
invidious:
|
|
env_file:
|
|
- .env
|
|
image: "git.nadeko.net/fijxu/invidious:${TAG}"
|
|
network_mode: "service:gluetun"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
|
environment:
|
|
INVIDIOUS_CONFIG: |
|
|
feed_threads: 0
|
|
log_level: Warn
|
|
# db:
|
|
# dbname: "${PGSQL_DBNAME}"
|
|
# user: "${PGSQL_USER}"
|
|
# password: "${PGSQL_PASS}"
|
|
# host: 172.80.0.22
|
|
# port: 5432
|
|
port: 3000
|
|
database_url: postgres://kemal:kemal@/invidious
|
|
redis_url: tcp://172.80.0.20:6379
|
|
donation_url: "https://nadeko.net/donate"
|
|
contact_url: "https://nadeko.net/contact"
|
|
home_domain: "nadeko.net"
|
|
materialious_domain: "materialious.nadeko.net"
|
|
full_refresh: false
|
|
https_only: true
|
|
hmac_key: "${HMAC_KEY}"
|
|
domain: "${DOMAIN}"
|
|
use_pubsub_feeds: true
|
|
popular_enabled: true
|
|
captcha_enabled: true
|
|
login_enabled: true
|
|
registration_enabled: false
|
|
statistics_enabled: true
|
|
external_port: 443
|
|
default_user_preferences:
|
|
annotations: true
|
|
disable_proxy: ["downloads"]
|
|
annotations_subscribed: true
|
|
autoplay: true
|
|
captions: ["English", "Spanish", "English (auto-generated)"]
|
|
comments: ["youtube", ""]
|
|
dark_mode: auto
|
|
latest_only: false
|
|
listen: false
|
|
locale: en-US
|
|
watch_history: true
|
|
max_results: 60
|
|
notifications_only: false
|
|
banner: "${BANNER}"
|
|
player_style: invidious
|
|
quality: "${QUALITY}"
|
|
quality_dash: auto
|
|
default_home: Popular
|
|
feed_menu: ["Popular", "Trending", "Subscriptions", "Playlists"]
|
|
automatic_instance_redirect: true
|
|
region: CL
|
|
sort: published
|
|
extend_desc: true
|
|
save_player_pos: true
|
|
cache_annotations: true
|
|
hsts: true
|
|
enable_user_notifications: false
|
|
modified_source_code_url: "${MODIFIED_SOURCE_CODE}"
|
|
force_resolve: ipv4
|
|
pool_size: "${POOL_SIZE}"
|
|
use_innertube_for_captions: true
|
|
jobs:
|
|
refresh_channels:
|
|
enable: false
|
|
subscribe_to_feeds:
|
|
enable: false
|
|
po_token: "${PO_TOKEN}"
|
|
visitor_data: "${VISITOR_DATA}"
|
|
signature_server: "172.80.0.30:12999"
|
|
depends_on:
|
|
- valkey
|
|
- inv_sig_helper
|
|
- gluetun
|
|
healthcheck:
|
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
|
|
# INVIDIOUS CLEARNET
|
|
invidious-2:
|
|
env_file:
|
|
- .env
|
|
image: "git.nadeko.net/fijxu/invidious:${TAG}"
|
|
network_mode: "service:gluetun"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
|
environment:
|
|
INVIDIOUS_CONFIG: |
|
|
feed_threads: 0
|
|
log_level: Warn
|
|
# db:
|
|
# dbname: "${PGSQL_DBNAME}"
|
|
# user: "${PGSQL_USER}"
|
|
# password: "${PGSQL_PASS}"
|
|
# host: 172.80.0.22
|
|
# port: 5432
|
|
port: 3001
|
|
database_url: postgres://kemal:kemal@/invidious
|
|
redis_url: tcp://172.80.0.20:6379
|
|
donation_url: "https://nadeko.net/donate"
|
|
contact_url: "https://nadeko.net/contact"
|
|
home_domain: "nadeko.net"
|
|
materialious_domain: "materialious.nadeko.net"
|
|
full_refresh: false
|
|
https_only: true
|
|
hmac_key: "${HMAC_KEY}"
|
|
domain: "${DOMAIN}"
|
|
use_pubsub_feeds: true
|
|
popular_enabled: true
|
|
captcha_enabled: true
|
|
login_enabled: true
|
|
registration_enabled: false
|
|
statistics_enabled: true
|
|
external_port: 443
|
|
default_user_preferences:
|
|
annotations: true
|
|
disable_proxy: ["downloads"]
|
|
annotations_subscribed: true
|
|
autoplay: true
|
|
captions: ["English", "Spanish", "English (auto-generated)"]
|
|
comments: ["youtube", ""]
|
|
dark_mode: auto
|
|
latest_only: false
|
|
listen: false
|
|
locale: en-US
|
|
watch_history: true
|
|
max_results: 60
|
|
notifications_only: false
|
|
banner: "${BANNER}"
|
|
player_style: invidious
|
|
quality: "${QUALITY}"
|
|
quality_dash: auto
|
|
default_home: Popular
|
|
feed_menu: ["Popular", "Trending", "Subscriptions", "Playlists"]
|
|
automatic_instance_redirect: true
|
|
region: CL
|
|
sort: published
|
|
extend_desc: true
|
|
save_player_pos: true
|
|
cache_annotations: true
|
|
hsts: true
|
|
enable_user_notifications: false
|
|
modified_source_code_url: "${MODIFIED_SOURCE_CODE}"
|
|
force_resolve: ipv4
|
|
pool_size: "${POOL_SIZE}"
|
|
use_innertube_for_captions: true
|
|
jobs:
|
|
refresh_channels:
|
|
enable: false
|
|
subscribe_to_feeds:
|
|
enable: false
|
|
po_token: "${PO_TOKEN}"
|
|
visitor_data: "${VISITOR_DATA}"
|
|
signature_server: "172.80.0.30:12999"
|
|
depends_on:
|
|
- valkey
|
|
- inv_sig_helper
|
|
- gluetun
|
|
healthcheck:
|
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
|
|
# INVIDIOUS CLEARNET
|
|
invidious-3:
|
|
env_file:
|
|
- .env
|
|
image: "git.nadeko.net/fijxu/invidious:${TAG}"
|
|
network_mode: "service:gluetun"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
|
environment:
|
|
INVIDIOUS_CONFIG: |
|
|
feed_threads: 0
|
|
log_level: Warn
|
|
# db:
|
|
# dbname: "${PGSQL_DBNAME}"
|
|
# user: "${PGSQL_USER}"
|
|
# password: "${PGSQL_PASS}"
|
|
# host: 172.80.0.22
|
|
# port: 5432
|
|
port: 3002
|
|
database_url: postgres://kemal:kemal@/invidious
|
|
redis_url: tcp://172.80.0.20:6379
|
|
donation_url: "https://nadeko.net/donate"
|
|
contact_url: "https://nadeko.net/contact"
|
|
home_domain: "nadeko.net"
|
|
materialious_domain: "materialious.nadeko.net"
|
|
full_refresh: false
|
|
https_only: true
|
|
hmac_key: "${HMAC_KEY}"
|
|
domain: "${DOMAIN}"
|
|
use_pubsub_feeds: true
|
|
popular_enabled: true
|
|
captcha_enabled: true
|
|
login_enabled: true
|
|
registration_enabled: false
|
|
statistics_enabled: true
|
|
external_port: 443
|
|
default_user_preferences:
|
|
annotations: true
|
|
disable_proxy: ["downloads"]
|
|
annotations_subscribed: true
|
|
autoplay: true
|
|
captions: ["English", "Spanish", "English (auto-generated)"]
|
|
comments: ["youtube", ""]
|
|
dark_mode: auto
|
|
latest_only: false
|
|
listen: false
|
|
locale: en-US
|
|
watch_history: true
|
|
max_results: 60
|
|
notifications_only: false
|
|
banner: "${BANNER}"
|
|
player_style: invidious
|
|
quality: "${QUALITY}"
|
|
quality_dash: auto
|
|
default_home: Popular
|
|
feed_menu: ["Popular", "Trending", "Subscriptions", "Playlists"]
|
|
automatic_instance_redirect: true
|
|
region: CL
|
|
sort: published
|
|
extend_desc: true
|
|
save_player_pos: true
|
|
cache_annotations: true
|
|
hsts: true
|
|
enable_user_notifications: false
|
|
modified_source_code_url: "${MODIFIED_SOURCE_CODE}"
|
|
force_resolve: ipv4
|
|
pool_size: "${POOL_SIZE}"
|
|
use_innertube_for_captions: true
|
|
jobs:
|
|
refresh_channels:
|
|
enable: false
|
|
subscribe_to_feeds:
|
|
enable: false
|
|
po_token: "${PO_TOKEN}"
|
|
visitor_data: "${VISITOR_DATA}"
|
|
signature_server: "172.80.0.30:12999"
|
|
depends_on:
|
|
- valkey
|
|
- inv_sig_helper
|
|
- gluetun
|
|
healthcheck:
|
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
|
|
# INVIDIOUS CLEARNET
|
|
invidious-4:
|
|
env_file:
|
|
- .env
|
|
image: "git.nadeko.net/fijxu/invidious:${TAG}"
|
|
network_mode: "service:gluetun"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
|
environment:
|
|
INVIDIOUS_CONFIG: |
|
|
feed_threads: 0
|
|
log_level: Warn
|
|
# db:
|
|
# dbname: "${PGSQL_DBNAME}"
|
|
# user: "${PGSQL_USER}"
|
|
# password: "${PGSQL_PASS}"
|
|
# host: 172.80.0.22
|
|
# port: 5432
|
|
port: 3003
|
|
database_url: postgres://kemal:kemal@/invidious
|
|
redis_url: tcp://172.80.0.20:6379
|
|
donation_url: "https://nadeko.net/donate"
|
|
contact_url: "https://nadeko.net/contact"
|
|
home_domain: "nadeko.net"
|
|
materialious_domain: "materialious.nadeko.net"
|
|
full_refresh: false
|
|
https_only: true
|
|
hmac_key: "${HMAC_KEY}"
|
|
domain: "${DOMAIN}"
|
|
use_pubsub_feeds: true
|
|
popular_enabled: true
|
|
captcha_enabled: true
|
|
login_enabled: true
|
|
registration_enabled: false
|
|
statistics_enabled: true
|
|
external_port: 443
|
|
default_user_preferences:
|
|
annotations: true
|
|
disable_proxy: ["downloads"]
|
|
annotations_subscribed: true
|
|
autoplay: true
|
|
captions: ["English", "Spanish", "English (auto-generated)"]
|
|
comments: ["youtube", ""]
|
|
dark_mode: auto
|
|
latest_only: false
|
|
listen: false
|
|
locale: en-US
|
|
watch_history: true
|
|
max_results: 60
|
|
notifications_only: false
|
|
banner: "${BANNER}"
|
|
player_style: invidious
|
|
quality: "${QUALITY}"
|
|
quality_dash: auto
|
|
default_home: Popular
|
|
feed_menu: ["Popular", "Trending", "Subscriptions", "Playlists"]
|
|
automatic_instance_redirect: true
|
|
region: CL
|
|
sort: published
|
|
extend_desc: true
|
|
save_player_pos: true
|
|
cache_annotations: true
|
|
hsts: true
|
|
enable_user_notifications: false
|
|
modified_source_code_url: "${MODIFIED_SOURCE_CODE}"
|
|
force_resolve: ipv4
|
|
pool_size: "${POOL_SIZE}"
|
|
use_innertube_for_captions: true
|
|
jobs:
|
|
refresh_channels:
|
|
enable: false
|
|
subscribe_to_feeds:
|
|
enable: false
|
|
po_token: "${PO_TOKEN}"
|
|
visitor_data: "${VISITOR_DATA}"
|
|
signature_server: "172.80.0.30:12999"
|
|
depends_on:
|
|
- valkey
|
|
- inv_sig_helper
|
|
- gluetun
|
|
healthcheck:
|
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
|
|
# INVIDIOUS CLEARNET
|
|
invidious-5:
|
|
env_file:
|
|
- .env
|
|
image: "git.nadeko.net/fijxu/invidious:${TAG}"
|
|
network_mode: "service:gluetun"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
|
environment:
|
|
INVIDIOUS_CONFIG: |
|
|
feed_threads: 0
|
|
log_level: Warn
|
|
# db:
|
|
# dbname: "${PGSQL_DBNAME}"
|
|
# user: "${PGSQL_USER}"
|
|
# password: "${PGSQL_PASS}"
|
|
# host: 172.80.0.22
|
|
# port: 5432
|
|
port: 3004
|
|
database_url: postgres://kemal:kemal@/invidious
|
|
redis_url: tcp://172.80.0.20:6379
|
|
donation_url: "https://nadeko.net/donate"
|
|
contact_url: "https://nadeko.net/contact"
|
|
home_domain: "nadeko.net"
|
|
materialious_domain: "materialious.nadeko.net"
|
|
full_refresh: false
|
|
https_only: true
|
|
hmac_key: "${HMAC_KEY}"
|
|
domain: "${DOMAIN}"
|
|
use_pubsub_feeds: true
|
|
popular_enabled: true
|
|
captcha_enabled: true
|
|
login_enabled: true
|
|
registration_enabled: false
|
|
statistics_enabled: true
|
|
external_port: 443
|
|
default_user_preferences:
|
|
annotations: true
|
|
disable_proxy: ["downloads"]
|
|
annotations_subscribed: true
|
|
autoplay: true
|
|
captions: ["English", "Spanish", "English (auto-generated)"]
|
|
comments: ["youtube", ""]
|
|
dark_mode: auto
|
|
latest_only: false
|
|
listen: false
|
|
locale: en-US
|
|
watch_history: true
|
|
max_results: 60
|
|
notifications_only: false
|
|
banner: "${BANNER}"
|
|
player_style: invidious
|
|
quality: "${QUALITY}"
|
|
quality_dash: auto
|
|
default_home: Popular
|
|
feed_menu: ["Popular", "Trending", "Subscriptions", "Playlists"]
|
|
automatic_instance_redirect: true
|
|
region: CL
|
|
sort: published
|
|
extend_desc: true
|
|
save_player_pos: true
|
|
cache_annotations: true
|
|
hsts: true
|
|
enable_user_notifications: false
|
|
modified_source_code_url: "${MODIFIED_SOURCE_CODE}"
|
|
force_resolve: ipv4
|
|
pool_size: "${POOL_SIZE}"
|
|
use_innertube_for_captions: true
|
|
jobs:
|
|
refresh_channels:
|
|
enable: false
|
|
subscribe_to_feeds:
|
|
enable: false
|
|
po_token: "${PO_TOKEN}"
|
|
visitor_data: "${VISITOR_DATA}"
|
|
signature_server: "172.80.0.30:12999"
|
|
depends_on:
|
|
- valkey
|
|
- inv_sig_helper
|
|
- gluetun
|
|
healthcheck:
|
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
|
|
# INVIDIOUS CLEARNET
|
|
invidious-6:
|
|
env_file:
|
|
- .env
|
|
image: "git.nadeko.net/fijxu/invidious:${TAG}"
|
|
network_mode: "service:gluetun"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
|
environment:
|
|
INVIDIOUS_CONFIG: |
|
|
feed_threads: 0
|
|
log_level: Warn
|
|
# db:
|
|
# dbname: "${PGSQL_DBNAME}"
|
|
# user: "${PGSQL_USER}"
|
|
# password: "${PGSQL_PASS}"
|
|
# host: 172.80.0.22
|
|
# port: 5432
|
|
port: 3005
|
|
database_url: postgres://kemal:kemal@/invidious
|
|
redis_url: tcp://172.80.0.20:6379
|
|
donation_url: "https://nadeko.net/donate"
|
|
contact_url: "https://nadeko.net/contact"
|
|
home_domain: "nadeko.net"
|
|
materialious_domain: "materialious.nadeko.net"
|
|
full_refresh: false
|
|
https_only: true
|
|
hmac_key: "${HMAC_KEY}"
|
|
domain: "${DOMAIN}"
|
|
use_pubsub_feeds: true
|
|
popular_enabled: true
|
|
captcha_enabled: true
|
|
login_enabled: true
|
|
registration_enabled: false
|
|
statistics_enabled: true
|
|
external_port: 443
|
|
default_user_preferences:
|
|
annotations: true
|
|
disable_proxy: ["downloads"]
|
|
annotations_subscribed: true
|
|
autoplay: true
|
|
captions: ["English", "Spanish", "English (auto-generated)"]
|
|
comments: ["youtube", ""]
|
|
dark_mode: auto
|
|
latest_only: false
|
|
listen: false
|
|
locale: en-US
|
|
watch_history: true
|
|
max_results: 60
|
|
notifications_only: false
|
|
banner: "${BANNER}"
|
|
player_style: invidious
|
|
quality: "${QUALITY}"
|
|
quality_dash: auto
|
|
default_home: Popular
|
|
feed_menu: ["Popular", "Trending", "Subscriptions", "Playlists"]
|
|
automatic_instance_redirect: true
|
|
region: CL
|
|
sort: published
|
|
extend_desc: true
|
|
save_player_pos: true
|
|
cache_annotations: true
|
|
hsts: true
|
|
enable_user_notifications: false
|
|
modified_source_code_url: "${MODIFIED_SOURCE_CODE}"
|
|
force_resolve: ipv4
|
|
pool_size: "${POOL_SIZE}"
|
|
use_innertube_for_captions: true
|
|
jobs:
|
|
refresh_channels:
|
|
enable: false
|
|
subscribe_to_feeds:
|
|
enable: false
|
|
po_token: "${PO_TOKEN}"
|
|
visitor_data: "${VISITOR_DATA}"
|
|
signature_server: "172.80.0.30:12999"
|
|
depends_on:
|
|
- valkey
|
|
- inv_sig_helper
|
|
- gluetun
|
|
healthcheck:
|
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
|
|
# SIGNATURE HELPER
|
|
inv_sig_helper:
|
|
image: quay.io/invidious/inv-sig-helper
|
|
restart: unless-stopped
|
|
init: true
|
|
command: ["--tcp", "0.0.0.0:12999"]
|
|
environment:
|
|
- RUST_LOG=info
|
|
networks:
|
|
gluetun_network:
|
|
ipv4_address: 172.80.0.30
|
|
|
|
http3-proxy:
|
|
image: git.nadeko.net/fijxu/http3-proxy:latest
|
|
restart: unless-stopped
|
|
network_mode: "service:gluetun"
|
|
environment:
|
|
DISABLE_WEBP: 1
|
|
|
|
# Without depends because haproxy is smart
|
|
haproxy:
|
|
image: haproxy:lts-alpine
|
|
container_name: invidious-haproxy-vpn
|
|
ports:
|
|
# Invidious
|
|
- "127.0.0.1:10055:8001"
|
|
# HTTP3-PROXY
|
|
- "127.0.0.1:10056:8004"
|
|
# STATS
|
|
- "127.0.0.1:8414:8404"
|
|
volumes:
|
|
- ./haproxy:/usr/local/etc/haproxy
|
|
- /run/invidious-haproxy:/tmp:rw
|
|
networks:
|
|
gluetun_network:
|
|
|
|
gluetun:
|
|
image: qmcgaw/gluetun
|
|
env_file:
|
|
- .env
|
|
cap_add:
|
|
- NET_ADMIN
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ./gluetun:/gluetun
|
|
environment:
|
|
- VPN_SERVICE_PROVIDER=mullvad
|
|
- VPN_TYPE=wireguard
|
|
- WIREGUARD_PRIVATE_KEY="${WIREGUARD_KEY}"
|
|
- WIREGUARD_ADDRESSES="${WIREGUARD_ADDRESSES}"
|
|
- SERVER_HOSTNAMES="${SERVER_HOSTNAMES}"
|
|
- DNS_KEEP_NAMESERVER=on
|
|
networks:
|
|
gluetun_network:
|
|
depends_on:
|
|
- haproxy
|
|
|
|
# gluetun-updater:
|
|
# image: qmcgaw/gluetun
|
|
# volumes:
|
|
# - ./gluetun:/gluetun
|
|
# command: update -enduser -providers mullvad
|
|
|
|
networks:
|
|
default:
|
|
name: invidious-vpn
|
|
gluetun_network:
|
|
external: true
|
|
|
|
volumes:
|
|
invidious-valkey-vpn:
|