From 6c266fdb5f33b815e67833974d42707b80276f99 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 26 Dec 2023 23:11:15 +0800 Subject: [PATCH] docs: add docker compose install document --- website/docs/deployments/docker.md | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 website/docs/deployments/docker.md diff --git a/website/docs/deployments/docker.md b/website/docs/deployments/docker.md new file mode 100644 index 0000000..de3c694 --- /dev/null +++ b/website/docs/deployments/docker.md @@ -0,0 +1,37 @@ +--- +sidebar_position: 1 +--- + +# Deploy Tianji with Docker Compose + +docker compose is most fast way to deploy `tianji` + +You only need a few steps to complete the deployment + +## Steps + +download docker compose config: + +``` +wget https://raw.githubusercontent.com/msgbyte/tianji/master/docker-compose.yml +``` + +and change some env + +``` +vim docker-compose.yml +``` + +you should change `JWT_SECRET` to make your token safe. + +and change `SERVER_URL` to make sure you can quick run `install.sh` in server status report if you have many level gateway. + +Then, run it! + +``` +docker compose up -d +``` + +its will start a postgresql and write init struct in database. if everything is ok, you can visit it in `http://127.0.0.1:12345` + +and default account is `admin`/`admin`, dont forget change password!