mkdir lobe-chat-database
cd lobe-chat-database
# sudo rm -rf data
# sudo rm -rf s3_data
bash <(curl -fsSL https://lobe.li/setup.sh) -l en
# You will see the information following and save them for using it later.
vim docker-compose.yml
# Copy from https://lobehub.com/docs/self-hosting/platform/docker-compose#run-docker-compose-deployment-command
# Replace string `localhost` to `<your_ip>` for using on local. `<local_domain>` seems not work here.
cp .env .env.bak
# sed -i -e 's/3210/3310/g' -e 's/9000/9100/g' -e 's/9001/9101/g' -e 's/8000/8100/g' .env
sed -i 's/localhost/<your_ip>/g' .env