docker 安装¶
0. 环境要求¶
最低1G内存 1核CPU linux 64位系统
1. 配置DNS¶
Configure the A record of the domain name to the public IP address of the server in the domain name service provider or DNS resolution service provider
例如
主机名 |
记录类型 |
记录值 |
---|---|---|
meet |
A |
x.x.x.x |
主机名可以为任意二级域名前缀,这里我们使用meet
example.com 是你的域名
x.x.x.x 是服务器的公网IP地址
2. 安装 docker, git¶
# If already installed, skip
mkdir pkgs && cd pkgs
wget 'https://download.docker.com/linux/static/stable/x86_64/docker-26.1.4.tgz'
tar xf docker-26.1.4.tgz;
chmod +x docker/*
sudo cp docker/* /usr/local/bin/
curl -SL https://github.com/docker/compose/releases/download/v2.27.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
yum install git # centos
apt install git # ubuntu/debian
3. Install¶
git clone https://github.com/Hedwi/hedwi-docker.git
cd hedwi-docker/meet
cp env.example .env
# Modify the .env configuration
make
4. 自动生成免费SSL证书¶
make cert
5. 重启nginx¶
make down && make