~homeworkprod/byceps

f025cfd9ea40635158f0b0e2b97243d974d241b5 — Jochen Kupperschmidt 8 days ago 5643a6a
Allow Redis URI, secret key to be set via env vars
2 files changed, 3 insertions(+), 0 deletions(-)

M byceps/application.py
M docker-compose.yml
M byceps/application.py => byceps/application.py +2 -0
@@ 88,6 88,8 @@ def _get_config_from_environment() -> Iterator[tuple[str, str]]:
    """Obtain selected config values from environment variables."""
    for key in (
        'APP_MODE',
        'REDIS_URL',
        'SECRET_KEY',
        'SITE_ID',
        'SQLALCHEMY_DATABASE_URI',
    ):

M docker-compose.yml => docker-compose.yml +1 -0
@@ 17,6 17,7 @@ services:
      - ./data:/home/byceps/app/data:rw
    environment:
      BYCEPS_CONFIG: /home/byceps/app/config/docker.py
      REDIS_URL: "redis://redis/0"
      SQLALCHEMY_DATABASE_URI: "postgresql+psycopg2://byceps:byceps@db/byceps"

  byceps-admin: