Update 'README.md'

This commit is contained in:
verita84 2022-11-30 23:43:15 +00:00
parent 91b5f23df6
commit 4d55149753

View File

@ -1,5 +1,12 @@
1. Create the bot account on your instance 1. Modify the following lines in ```bot.sh```
2. Build and start the bot container ```
SQL_USER='root'
SQL_PASS='sql'
SQL_DATABASE='pooper'
```
2. Create the bot account on your instance
3. Build and start the bot container
``` ```
docker build -t blockbot . docker build -t blockbot .
docker run -d --name blockbot --restart=always -e ENDPOINT=poster.place --add-host postgresql:192.168.0.146 blockbot docker run -d --name blockbot --restart=always -e ENDPOINT=poster.place --add-host postgresql:192.168.0.146 blockbot
@ -7,7 +14,7 @@ docker run -d --name blockbot --restart=always -e ENDPOINT=poster.place --add-ho
(Change the IP address to your postgres server, do not use 127.0.0.1 or localhost) (Change the IP address to your postgres server, do not use 127.0.0.1 or localhost)
``` ```
3. Go inside the container and setup the account auth 4. Go inside the container and setup the account auth
``` ```
docker exec -it blockbot bash docker exec -it blockbot bash
@ -18,7 +25,7 @@ exit
``` ```
4. Testing the setup 5. Testing the setup
``` ```
docker exec -it blockbot bash docker exec -it blockbot bash