-
Notifications
You must be signed in to change notification settings - Fork 24
Deploy with Docker
cworld1 edited this page Feb 13, 2023
·
1 revision
curl -fsSL https://get.docker.com | bash -s docker
sudo curl -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose version
不同系统安装命令可能略有差异,详见:Docker Documentation
git clone https://github.com/luoshuijs/TGPaimonBot.git
cd TGPaimonBot
cp .env.example .env
cp docker-compose.gen.yml docker-compose.yml
# MySQL
DB_HOST=mysql
DB_PORT=3306
DB_USERNAME=root
DB_PASSWORD="root"
DB_DATABASE=paimon
# Redis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=""
以及 bot token 等参数。详见 Env Settings
docker-compose up -d
-
Deploy with Container