Skip to content

Commit

Permalink
Update environment configuration in docker-compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
willyfromtheblock committed Feb 7, 2024
1 parent 2b09322 commit 2fcd909
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TZ=Europe/Madrid #do NOT change
PRICE_LOG_LEVEL=info
HTTP_LOG_LEVEL=info
HTTP_PORT=3001
RATING_MARGIN=10
PROTECTED_MODE=false
RAPID_API_SECRET=
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Just run this server, and it will do all the heavy lifting for you.
- docker-compose

### Configure
- adapt environment in **docker-compose.yaml** accordingly or create a **docker-compose.override.yaml** file
- adapt environment in **.env**, see **.env.example*
- **do not change TZ**
- **RATING_MARGIN** is a margin value in percent for price classification. Defaults to 10, meaning only prices 10% below the daily average will be considered off-peak. **Must be between 0 and 99.**

Expand Down
10 changes: 2 additions & 8 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ services:
context: .
dockerfile: Dockerfile
container_name: strom_api
environment:
- TZ=Europe/Madrid #do NOT change
- PRICE_LOG_LEVEL=info
- HTTP_LOG_LEVEL=info
- HTTP_PORT=3001
- RATING_MARGIN=10
- PROTECTED_MODE=false
- RAPID_API_SECRET=
env-file:
- .env
restart: always
ports:
- "3001:3001"
Expand Down

0 comments on commit 2fcd909

Please sign in to comment.