Docker自建Rustdesk服务器配置docker-compose.yaml新建一个rustdesk目录version: '3' networks: rustdesk-net: external: false services: hbbs: container_name: hbbs ports: - 21115:21115 - 21116:21116 - 21116:21116/udp - 21118:21118 image: rustdesk/rustdesk-server:latest command: hbbs -r 此处填写你的公网IP:21117 -k _ volumes: - ./data:/root networks: - rustdesk-net depends_on: - hbbr restart: unless-stopped hbbr: container_na
使用Nginx Proxy Manage进行Docker容器中的反向代理前面讲了搭建Typecho博客,但是没有监听443端口,这里来进行反向代理。1. 需要用到的镜像nginx-proxy-manager2. 配置先在dockerdata下创建一个npm目录配置 docker-compose.ymlversion: '3.8' services: app: #image: 'jc21/nginx-proxy-manager:latest' # 官方原版 image: 'chishin/nginx-proxy-manager-zh:2.9.18' # 中文版 restart: unless-stopped ports: # These ports are in format <host-port>:<container-port> - '80:80' # Public HTTP Port - '443:
Ubuntu22.04使用Docker搭建typecho博客1. 安装Docker详见:2. 需要用到的镜像nginxphp:8.2-fpmmysql:5.73. 配置新建 blog 文件夹,其目录结构如下:. ├── docker-compose.yml ├── logs ├── mysql ├── mysql.env ├── nginx │ └── default.conf ├── php │ └── Dockerfile └── typecho3.1 配置 docker-compose.ymlversion: "3.8" services: nginx: image: nginx:latest ports: - "8080:80" restart: always environment: - TZ=Asia/Shanghai volumes: - ./typecho:/var/www/html - .
Ubuntu 22.04安装Docker 和 Docker Compose安装Docker更新源和依赖apt-get update apt upgrade安装dockerapt install docker apt install docker.io运行Dockersystemctl start docker systemctl status docker systemctl enable docker安装工具apt-get -y install apt-transport-https ca-certificates curl software-properties-common安装插件apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin重启Dockersystemctl restart docker验证查看版本docker version安装 Docker Compose安装官网安装地址:Install Compose standalone |
树莓派安装OMV和在Docker中安装HomeAssistant树莓派烧录系统-2023-12-15我使用的是树莓派4B,现在官方推出了一款烧录系统的工具,可以在里面设置用户名、密码、连接的wifi和是否开启SSH等信息。使用官方系统烧录工具选择64位lite版本系统进行烧录注意:树莓派连接WiFi最好设置为2.4G的WiFi树莓派更换国内源使用清华源:清华源-Debiansudo nano /etc/apt/sources.list 注释掉原来的源并添加下面的源# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware deb https://mirrors.tu
一只胖橘