Code Monkey home page Code Monkey logo

family-media-center's Introduction

[toc]

智能家庭中心

使用docker-compose, 在废旧电脑上一键搭建智能家庭服务。

使用方法

下载本仓库

$ git clone https://github.com/crazygit/family-media-center.git
$ cd family-media-center

编辑配置文件

编辑run.sh

根据自身情况修改run.sh脚本中的配置项

设置你的Aria2的RPC密码

export ARIA2_PRC_SECRET="your_secret"

选择要启动的服务,默认启动全部服务

docker-compose -f docker-compose.aria2.yml \
               -f docker-compose.jellyfin.yml \
               -f docker-compose.kodi.yml \
               -f docker-compose.openwrt.yml \
               -f docker-compose.samba.yml \
               -f docker-compose.tiny_media_manager.yml \
               -f docker-compose.watchtower.yml \
               $@
修改openwrt相关配置

如果要使用openwrt旁路由,请根据自身网络情况做如下调整:

  1. 修改openwrt的配置文件openwrt/etc/config/network

    config interface 'lan'
            #option type 'bridge'
            option ifname 'eth0'
            option proto 'static'
            # 分配给openwrt系统的IP地址
            option ipaddr '192.168.2.126'
            # 子网掩码
            option netmask '255.255.255.0'
            # 主路由的网关
            option gateway '192.168.2.1'
            # DNS
            option dns '223.6.6.6'
            # 广播地址
            option broadcast '192.168.2.255'
            #option ip6assign '60'
  2. 修改docker-compose.openwrt.yml

    注意: 宿主机如果通过WIFI连接网络,则选择ipvlan模式,如果是有线连接网络则选择macvlan模式

    networks:
      ipvlan:
        driver: ipvlan
        driver_opts:
          ipvlan_mode: l2
          # 宿主机网卡
          parent: enp3s0
        ipam:
          config:
              # 本地IP网段
            - subnet: 192.168.2.0/24
              #gateway: 192.168.2.1

运行

# 启动所有服务
$ bash run.sh up -d

# 停止所有服务
$ bash run.sh down

服务访问方式

资源推荐

OpenWrt建议安装

https://github.com/frainzy1477/luci-app-clash/

它包含一个富强软件和一个比较漂亮的主题

效果图

Jellyfin

jellyfin

TidyMediaManager

TidyMediaManager

AriaNg

AriaNg

Kodi

Kodi

Samba

Samba

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.