Update README.md (#2)

This commit is contained in:
HappyLoLTroll 2025-04-16 10:02:44 +02:00 committed by GitHub
parent 78d5dfbe53
commit 15db8ea6df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,16 @@ first build the image using the dockerfile
docker build -t govd-bot . docker build -t govd-bot .
``` ```
then edit the .env file and match the DB properties with the MariaDB service environment variables in the docker-compose.yml file and run next, update the .env file to ensure the database properties match the environment variables defined for the MariaDB service in the docker-compose.yml file
(while the default environment variables defined for the MariaDB service are acceptable, it is recommended to change the `MYSQL_PASSWORD` property in the docker-compose.yaml file for enhanced security and ensure that you also modify the the `DB_PASSWORD` property in the .env file to reflect this change)
the following line in the .env file MUST be set as shown below
```env
DB_HOST=db
```
finally run the compose to start all services
```bash ```bash
docker compose up -d docker compose up -d