Guest User

Untitled

a guest
Aug 31st, 2025
40
0
28 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.01 KB | Source Code | 0 0
  1. services:
  2.   gluetun:
  3.     image: ghcr.io/qdm12/gluetun
  4.     container_name: gluetun
  5.     cap_add:
  6.      - NET_ADMIN
  7.     devices:
  8.      - /dev/net/tun:/dev/net/tun
  9.     ports:
  10.      - "3000:3000"
  11.       - "8282:8282"
  12.     volumes:
  13.      - /docker/gluetun/data:/gluetun
  14.     environment:
  15.      - VPN_SERVICE_PROVIDER=windscribe
  16.       - VPN_TYPE=wireguard
  17.       - WIREGUARD_PRIVATE_KEY=<PRIVATE_KEY>
  18.      - WIREGUARD_PRESHARED_KEY=<PRESHARED_KEY>
  19.      - WIREGUARD_ADDRESSES=<IP_RANGE>
  20.      - SERVER_REGIONS="Albania"
  21.       - WIREGUARD_ENDPOINT_PORT=443
  22.       - TZ=<TIMEZONE>
  23.     networks:
  24.       gluetun_network:
  25.   invidious:
  26.     image: quay.io/invidious/invidious:master
  27.     restart: unless-stopped
  28.     # ports:
  29.       # - "3000:3000"
  30.     environment:
  31.       INVIDIOUS_CONFIG: |
  32.         db:
  33.           dbname: invidious
  34.           user: kemal
  35.           password: kemal
  36.           host: 172.80.0.22
  37.           port: 5432
  38.         invidious_companion:
  39.         - private_url: "http://localhost:8282"
  40.           public_url: "<LOCAL_SERVER_HOSTNAME>"
  41.         invidious_companion_key: "<KEY>"
  42.         hmac_key: "<KEY>"
  43.         check_tables: true
  44.         domain: <DOMAIN>
  45.         https_only: false
  46.         default_user_preferences:
  47.           local: true
  48.     healthcheck:
  49.       test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
  50.       interval: 10s
  51.       timeout: 5s
  52.       retries: 2
  53.     logging:
  54.       options:
  55.         max-size: "1G"
  56.         max-file: "4"
  57.     network_mode: "container:gluetun"
  58.     depends_on:
  59.       invidious-db:
  60.         condition: service_started
  61.       gluetun:
  62.         condition: service_healthy
  63.  
  64.   companion:
  65.     image: quay.io/invidious/invidious-companion:latest
  66.     environment:
  67.       - SERVER_SECRET_KEY=<SECRET_KEY>
  68.     restart: unless-stopped
  69.     # ports:
  70.       # - "127.0.0.1:8282:8282"
  71.     logging:
  72.       options:
  73.         max-size: "1G"
  74.         max-file: "4"
  75.     cap_drop:
  76.      - ALL
  77.     read_only: true
  78.     volumes:
  79.      - companioncache:/var/tmp/youtubei.js:rw
  80.     security_opt:
  81.      - no-new-privileges:true
  82.     network_mode: "container:gluetun"
  83.     depends_on:
  84.       invidious-db:
  85.         condition: service_started
  86.       gluetun:
  87.         condition: service_healthy
  88.       invidious:
  89.         condition: service_healthy
  90.  
  91.   invidious-db:
  92.     image: docker.io/library/postgres:14
  93.     restart: unless-stopped
  94.     volumes:
  95.      - postgresdata:/var/lib/postgresql/data
  96.       - ./config/sql:/config/sql
  97.       - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
  98.     environment:
  99.       POSTGRES_DB: invidious
  100.       POSTGRES_USER: kemal
  101.       POSTGRES_PASSWORD: kemal
  102.     healthcheck:
  103.       test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
  104.     networks:
  105.       gluetun_network:
  106.         ipv4_address: 172.80.0.22
  107.     depends_on:
  108.       gluetun:
  109.         condition: service_healthy
  110.    
  111. volumes:
  112.   postgresdata:
  113.   companioncache:
  114. networks:
  115.   gluetun_network:
  116.     external: true
  117.  
Advertisement
Add Comment
Please, Sign In to add comment