docker install

0. Requirements

Minimum 1G memory 1 core CPU linux 64-bit system

1. Configure 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

For example

Host name

Record type

Record value

meet

A

x.x.x.x

  • The host name can be any secondary domain name prefix, here we use meet

  • example.com is your domain name

  • x.x.x.x is the public IP address of the server

  • The web access address is https://meet.example.com/meet

2. Install 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
sudo chmod +x /usr/local/bin/docker-compose

yum install git # centos
apt install git  # ubuntu/debian

# start docker daemon
sudo dockerd &

3. Install

# github 国外用户使用github更快
git clone https://github.com/Hedwi/hedwi-docker.git

# gitee 国内用户使用gitee更快
git clone https://gitee.com/hedwi/hedwi-docker.git

cd hedwi-docker/meet
cp env.example .env

# Modify the .env configuration

make

4. Automatically generate free SSL certificates

make cert

5. Restart nginx

make down && make