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= # ORCHESTRA
MUSICIAN_SECRET_KEY= ####
#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 # specially useful if you want to deploy in a specific domain
#MUSICIAN_API_BASE_URL=https://orchestra.example.org #MUSICIAN_API_BASE_URL='https://orchestra.example.org'
#ALLOWED_HOSTS=musician.example.org #MUSICIAN_ALLOWED_HOSTS='musician.example.org'

View File

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