💾 Archived View for ilonagabor.de › assets › degoogle › docker-compose.yml captured on 2021-12-03 at 14:04:38.

View Raw

More Information

➡️ Next capture (2022-06-04)

-=-=-=-=-=-=-

version: '3.5'
services:
  postgres:
    image: postgres:10
    restart: unless-stopped
    volumes:
      - postgresdata:/var/lib/postgresql/data
      - ./config/sql:/config/sql
      - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh

    network_mode: service:vpn
    environment:
      POSTGRES_DB: invidious
      POSTGRES_PASSWORD: kemal
      POSTGRES_USER: kemal
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "postgres"]

  invidious:
    build:
      context: .
      dockerfile: docker/Dockerfile
    restart: unless-stopped
    environment:
      # Adapted from ./config/config.yml
      INVIDIOUS_CONFIG: |
        channel_threads: 1
        check_tables: true
        feed_threads: 1
        db:
          user: kemal
          password: kemal
          host: 127.0.0.1
          port: 5432
          dbname: invidious
        full_refresh: false
        https_only: false
        domain:                   #your domain
    network_mode: service:vpn
    depends_on:
      - postgres
      - vpn
  searx:
    container_name: searx
    image: searx/searx:latest
    restart: always
    volumes:
      - /var/www/searx:/etc/searx:rw
    network_mode: service:vpn
    depends_on:
      - vpn

  vpn:
    container_name: nordlynx
    image: bubuntux/nordvpn
    restart: always
    network_mode: bridge
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      - net.ipv4.conf.all.rp_filter=2
    devices:
      - /dev/net/tun
    environment:
      - USER=                                 # NordVPN username
      - "PASS=Pa$word"                       # NordVPN password
      - TECHNOLOGY=NordLynx
      - NETWORK=192.168.1.0/24
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - 8080:8080
      - 127.0.0.1:3000:3000
      - 5432

volumes:
  postgresdata: