2024-09-16 11:48:20 +02:00
|
|
|
---
|
|
|
|
networks:
|
2024-11-15 22:27:25 +01:00
|
|
|
default:
|
2024-11-10 23:00:16 +01:00
|
|
|
name: "eos"
|
2024-09-16 11:48:20 +02:00
|
|
|
services:
|
|
|
|
eos:
|
2024-11-10 23:00:16 +01:00
|
|
|
image: "akkudoktor/eos:${EOS_VERSION}"
|
2024-10-07 20:56:10 +02:00
|
|
|
read_only: true
|
2024-09-16 11:48:20 +02:00
|
|
|
build:
|
|
|
|
context: .
|
2024-11-10 23:00:16 +01:00
|
|
|
dockerfile: "Dockerfile"
|
2024-09-16 11:48:20 +02:00
|
|
|
args:
|
2024-11-10 23:00:16 +01:00
|
|
|
PYTHON_VERSION: "${PYTHON_VERSION}"
|
2025-01-18 14:26:34 +01:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-12-30 13:41:39 +01:00
|
|
|
environment:
|
|
|
|
- EOS_CONFIG_DIR=config
|
2025-01-19 13:00:53 +01:00
|
|
|
- EOS_SERVER__EOSDASH_SESSKEY=s3cr3t
|
2025-01-18 14:26:34 +01:00
|
|
|
- EOS_PREDICTION__LATITUDE=52.2
|
|
|
|
- EOS_PREDICTION__LONGITUDE=13.4
|
|
|
|
- EOS_ELECPRICE__PROVIDER=ElecPriceAkkudoktor
|
|
|
|
- EOS_ELECPRICE__CHARGES_KWH=0.21
|
2024-09-17 09:02:35 +02:00
|
|
|
ports:
|
2025-02-17 21:32:10 +01:00
|
|
|
# Configure what ports to expose on host
|
|
|
|
- "${EOS_SERVER__PORT}:8503"
|
|
|
|
- "${EOS_SERVER__EOSDASH_PORT}:8504"
|
2025-08-26 23:32:37 +02:00
|
|
|
|
|
|
|
# Volume mount configuration (optional)
|
|
|
|
# IMPORTANT: When mounting local directories, the default config won't be available.
|
|
|
|
# You must create an EOS.config.json file in your local config directory with:
|
|
|
|
# {
|
|
|
|
# "server": {
|
|
|
|
# "host": "0.0.0.0", # Required for Docker container accessibility
|
|
|
|
# "port": 8503,
|
|
|
|
# "startup_eosdash": true,
|
|
|
|
# "eosdash_host": "0.0.0.0", # Required for Docker container accessibility
|
|
|
|
# "eosdash_port": 8504
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# Example volume mounts (uncomment to use):
|
|
|
|
# volumes:
|
|
|
|
# - ./config:/opt/eos/config # Mount local config directory
|
|
|
|
# - ./cache:/opt/eos/cache # Mount local cache directory
|
|
|
|
# - ./output:/opt/eos/output # Mount local output directory
|