orchestra & musician: use env namespace

This commit is contained in:
pedro 2023-10-31 10:44:46 +01:00
parent f84539f6b7
commit 0359759848
2 changed files with 13 additions and 7 deletions

View File

@ -1,6 +1,12 @@
ORCHESTRA_SECRET_KEY=
MUSICIAN_SECRET_KEY=
# ORCHESTRA
####
#ORCHESTRA_SECRET_KEY='uncomment-it-and-fill-this'
# MUSICIAN
####
#MUSICIAN_SECRET_KEY='uncomment-it-and-fill-this'
# specially useful if you want to deploy in a specific domain
#MUSICIAN_API_BASE_URL=https://orchestra.example.org
#ALLOWED_HOSTS=musician.example.org
#MUSICIAN_API_BASE_URL='https://orchestra.example.org'
#MUSICIAN_ALLOWED_HOSTS='musician.example.org'

View File

@ -5,7 +5,7 @@ services:
init: true
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/orchestra:sso__533d749
environment:
- SECRET_KEY=${ORCHESTRA_SECRET_KEY:-123456}
- SECRET_KEY=${ORCHESTRA_SECRET_KEY:-publicsecretisnotsecureVtmKBfxpVV47PpBCF2Nzz2H6qnbd}
ports:
- "9080:9080"
# TODO configure volumes
@ -18,9 +18,9 @@ services:
ports:
- "8080:8080"
environment:
- SECRET_KEY=${MUSICIAN_SECRET_KEY:-123456}
- SECRET_KEY=${MUSICIAN_SECRET_KEY:-publicsecretisnotsecureVtmKBfxpVV47PpBCF2Nzz2H6qnbd}
- API_BASE_URL=${MUSICIAN_API_BASE_URL:-http://nginx-orchestra-api:3000}
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-*}
- ALLOWED_HOSTS=${MUSICIAN_ALLOWED_HOSTS:-*}
# TODO configure volumes
#volumes:
# - .:/home