Giter Site home page Giter Site logo

selfhosted's Introduction

Selfhosted

本仓库记录了我在VPS中使用docker部署的自托管服务的compose文件 安全起见,服务器只暴露ssh端口和80/443端口 所有的服务通过Nginx反向代理,通过443端口访问,通过不同的域名来区分。

各个项目都只在同一个docker网络中存在,这样方便不同的容器间相互访问。 手动指定每个容器的ip,目的是服务器重启后,ip不会变化。

  1. 默认已经安装好Docker/Docker compose

  2. 首先创建一个名为npm_dafault的bridge网络

docker network create --subnet=172.20.0.0/24 npm_dafault
  1. 使用Nginx Proxy Manager来管理所有反向代理

    其中81端口为NPM的管理后台端口,配置好以后也隐藏起来

  2. 使用dockage管理compose文件

    其中compose.yml为配置好的文件,.env文件为默认环境变量文件

  3. 启动各个服务

docker compose up -d

selfhosted's People

Contributors

mapxn avatar

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.