Skip to content
Snippets Groups Projects
Verified Commit a5e3df45 authored by Roman Brendler's avatar Roman Brendler
Browse files

Rework(docker,config): Expect all config vars to be supplied as env variables

- When using the docker setup, the image now expects to get all config variables as environment variables
parent 3e1f4238
No related branches found
No related tags found
No related merge requests found
Pipeline #1745 passed
...@@ -19,6 +19,7 @@ ENV PYTHONPATH "${PYTHONPATH}:/srv/src" ...@@ -19,6 +19,7 @@ ENV PYTHONPATH "${PYTHONPATH}:/srv/src"
# Create default config # Create default config
COPY ./config/sample/gunicorn/sample-docker.gunicorn.conf.py /srv/config/gunicorn.conf.py COPY ./config/sample/gunicorn/sample-docker.gunicorn.conf.py /srv/config/gunicorn.conf.py
COPY ./config/sample/sample-docker.engine-api.ini /srv/config/engine-api.ini
# Start the API Server # Start the API Server
......
...@@ -5,19 +5,21 @@ ...@@ -5,19 +5,21 @@
[database] [database]
# Use 'postgresql', 'sqlite' or 'mysql'. In case of SQLite the "db_name" is the name of the file. # Use 'postgresql' or 'mysql'
db_type="postgresql" db_type="postgresql"
db_name="aura_engine_api" db_name="${ENGINE_API_DB_NAME}"
db_user="aura_engine_api" db_user="${ENGINE_API_DB_USER}"
db_pass="---SECRET--PASSWORD---" db_pass="${ENGINE_API_DB_PASS}"
db_host="localhost" db_host="engine-api-postgres"
db_charset="utf8" db_charset="utf8"
[monitoring] [monitoring]
logdir="./logs" logdir="./logs"
# possible values: debug, info, warning, error, critical # possible values: debug, info, warning, error, critical
loglevel="info" # default is info
debug_flask="false" loglevel="${ENGINE_API_LOG_LEVEL}"
# default is false
debug_flask="${ENGINE_API_DEBUG_FLASK}"
[api] [api]
api_port=8008 api_port=8008
...@@ -25,7 +27,8 @@ api_cors="*" ...@@ -25,7 +27,8 @@ api_cors="*"
[federation] [federation]
enable_federation="false" #default is false
enable_federation="${ENGINE_API_ENABLE_FEDERATION}"
# Defines the engine number id for identification of record sources. Default values are: # Defines the engine number id for identification of record sources. Default values are:
# #
...@@ -43,7 +46,8 @@ enable_federation="false" ...@@ -43,7 +46,8 @@ enable_federation="false"
# NODE 1 # NODE 1
host_id=1 host_id=1
sync_host="http://localhost:8010" #default is http://localhost:8010
sync_host="${ENGINE_API_SYNC_HOST}"
# NODE 2 # NODE 2
; host_id=2 ; host_id=2
...@@ -62,4 +66,4 @@ sync_host="http://localhost:8010" ...@@ -62,4 +66,4 @@ sync_host="http://localhost:8010"
sync_api_get_playlog="/api/v1/playlog" sync_api_get_playlog="/api/v1/playlog"
sync_api_store_playlog="/api/v1/playlog/store" sync_api_store_playlog="/api/v1/playlog/store"
sync_api_store_healthlog="/api/v1/source/health" sync_api_store_healthlog="/api/v1/source/health"
sync_api_store_clockinfo="/api/v1/clock" sync_api_store_clockinfo="/api/v1/clock"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment