mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-17 07:55:15 +00:00
Some checks failed
docker-build / platform-excludes (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
* On Windows use 127.0.0.1 as default config host (model defaults) and addionally redirect 0.0.0.0 to localhost on Windows (because default config file still has 0.0.0.0). Use 0.0.0.0 as default otherwise (e.g. Linux/Docker) to allow EOS being accessible on local network (not just same host). Note: Docs generation on Windows is incompatible with the Github pipeline tests. Address this in the nested-config feature branch. * Update install/startup instructions as package installation is required atm and Docker on Windows has to be accessed at localhost or 127.0.0.1 even though the server log says 0.0.0.0 (which is required to be available outside the container). * Fix EOSdash startup with read_only: true (support session key via EOS_SERVER__EOSDASH_SESSKEY variable). Backport of feature branch. * Remove root_path, causing Windows to fail load swagger UI (/docs).
23 lines
498 B
YAML
23 lines
498 B
YAML
---
|
|
networks:
|
|
default:
|
|
name: "eos"
|
|
services:
|
|
eos:
|
|
image: "akkudoktor/eos:${EOS_VERSION}"
|
|
read_only: true
|
|
build:
|
|
context: .
|
|
dockerfile: "Dockerfile"
|
|
args:
|
|
PYTHON_VERSION: "${PYTHON_VERSION}"
|
|
environment:
|
|
- EOS_CONFIG_DIR=config
|
|
- latitude=52.2
|
|
- longitude=13.4
|
|
- elecprice_provider=ElecPriceAkkudoktor
|
|
- elecprice_charges_kwh=0.21
|
|
- EOS_SERVER__EOSDASH_SESSKEY=s3cr3t
|
|
ports:
|
|
- "${EOS_PORT}:${EOS_PORT}"
|