Move envvars to .env file.

This commit is contained in:
FiveMovesAhead 2024-12-31 22:20:04 +08:00
parent 2364377174
commit 48d8dcd888
3 changed files with 19 additions and 9 deletions

1
.gitignore vendored
View File

@ -18,5 +18,4 @@ Cargo.lock
__pycache__/
# Ignore these.
.env
db_data/

7
tig-benchmarker/.env Normal file
View File

@ -0,0 +1,7 @@
POSTGRES_USER=postgres
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_DB=postgres
UI_PORT=80
DB_PORT=5432
MASTER_PORT=5115
VERBOSE=

View File

@ -7,17 +7,21 @@ Benchmarker for TIG. Expected setup is a single master and multiple slaves on di
Simply run:
```
POSTGRES_USER=postgres \
POSTGRES_PASSWORD=mysecretpassword \
POSTGRES_DB=postgres \
UI_PORT=80 \
DB_PORT=5432 \
MASTER_PORT=5115 \
# set VERBOSE=1 for debug master logs
VERBOSE= \
docker-compose up --build
```
This uses the `.env` file:
```
POSTGRES_USER=postgres
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_DB=postgres
UI_PORT=80
DB_PORT=5432
MASTER_PORT=5115
VERBOSE=
```
See last section on how to find your player_id & api_key.
**Notes:**