mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 03:27:46 +01:00
Add config/docker folder, add README.md and an example mysql.env file there
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
## How to set-up the Docker database
|
||||
|
||||
|
||||
First, open `config/docker/mysql.env.example`, open in notepad or N++, change all the values to something else ~~or don't if you are lazy~~ for security sake.
|
||||
|
||||
Then proceed to save the changed version to `mysql.env` and save it in the same directory as the `mysql.env.example` file.
|
||||
|
||||
In order to get docker to use the database, it's suggested to change the `config/dbconfig.txt` to include the values in `.env` file, to do this, use the hostname `db` as host!
|
||||
|
||||
### Example for `config/dbconfig.txt`:
|
||||
|
||||
```
|
||||
# MySQL Connection Configuration
|
||||
|
||||
# Server the MySQL database can be found at
|
||||
# Examples: localhost, 200.135.5.43, www.mysqldb.com, etc.
|
||||
ADDRESS db
|
||||
|
||||
# MySQL server port (default is 3306)
|
||||
PORT 3306
|
||||
|
||||
# Database the population, death, karma, etc. tables may be found in
|
||||
DATABASE virgo
|
||||
|
||||
# Username/Login used to access the database
|
||||
LOGIN sillyusername
|
||||
|
||||
# Password used to access the database
|
||||
PASSWORD somekindofpassword
|
||||
|
||||
# The following information is for feedback tracking via the blackbox server
|
||||
FEEDBACK_DATABASE test
|
||||
FEEDBACK_LOGIN mylogin
|
||||
FEEDBACK_PASSWORD mypassword
|
||||
|
||||
# Track population and death statistics
|
||||
# Comment this out to disable
|
||||
#ENABLE_STAT_TRACKING
|
||||
```
|
||||
@@ -0,0 +1,8 @@
|
||||
# MySQL database root password
|
||||
db_password=SUPERSEKRETOMYGOD
|
||||
# MySQL database name
|
||||
db_name=virgo
|
||||
# MySQL login username
|
||||
dbuser_username=sillyusername
|
||||
# MySQL login password
|
||||
dbuser_password=somekindofpassword
|
||||
Reference in New Issue
Block a user