0c3bda1a89
- Added an example .env file, where all variables start with `OBS_` - `OBS_` variables are handled by the portal as configuration variables - Uncomment some variables in the config.py, since the config.py overrides the env-vars - Use env-vars and env-file in the docker-compose.yaml - Add the worker to the docker-compose.yaml - Add KeyCloak with its own postgres to the docker-compose.yaml
48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
###################################################
|
|
# Keycloak
|
|
###################################################
|
|
|
|
OBS_KEYCLOAK_URI=portal.example.com
|
|
|
|
# Postgres
|
|
|
|
OBS_KEYCLOAK_POSTGRES_USER=obs
|
|
OBS_KEYCLOAK_POSTGRES_PASSWORD=<<TODO>>
|
|
OBS_KEYCLOAK_POSTGRES_DB=obs
|
|
|
|
# KeyCloak
|
|
|
|
OBS_KEYCLOAK_POSTGRES_HOST=postgres-keycloak
|
|
OBS_KEYCLOAK_ADMIN_USER=admin
|
|
OBS_KEYCLOAK_ADMIN_PASSWORD=<<TODO>>
|
|
OBS_KEYCLOAK_REALM=obs
|
|
OBS_KEYCLOAK_PORTAL_REDIRECT_URI=https://obs.example.com/*
|
|
|
|
###################################################
|
|
# Portal
|
|
###################################################
|
|
|
|
OBS_PORTAL_URI=portal.example.com
|
|
|
|
# Postgres + osm2pgsql
|
|
|
|
OBS_POSTGRES_HOST=postgres
|
|
OBS_POSTGRES_USER=obs
|
|
OBS_POSTGRES_PASSWORD=<<TODO>>
|
|
OBS_POSTGRES_DB=obs
|
|
|
|
# Portal
|
|
|
|
OBS_HOST=0.0.0.0
|
|
OBS_PORT=3000
|
|
OBS_SECRET=<<TODO>>
|
|
OBS_POSTGRES_URL=postgresql+asyncpg://obs:<<TODO>>@postgres/obs
|
|
OBS_KEYCLOAK_URL=https://login.example.com/auth/realms/obs/
|
|
OBS_KEYCLOAK_CLIENT_ID=portal
|
|
OBS_KEYCLOAK_CLIENT_SECRET=<<TODO>>
|
|
OBS_DEDICATED_WORKER="True"
|
|
OBS_DATA_DIR=/data
|
|
OBS_PROXIES_COUNT=1
|
|
|
|
###################################################
|