feat: refractor CIE auth stack configuration for improved environment variable management and docker compatibility
This commit is contained in:
+37
-3
@@ -3,33 +3,67 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
network_mode: host
|
||||
working_dir: /app/federation_authority
|
||||
command: ["/app/federation_authority", "8000"]
|
||||
environment:
|
||||
DJANGO_SECRET_KEY: ${FEDERATION_AUTHORITY_SECRET_KEY:-visione-cie-authority-local-dev}
|
||||
DJANGO_ALLOWED_HOSTS: ${CIE_AUTH_ALLOWED_HOSTS:-*}
|
||||
DJANGO_TRUST_ANCHOR: ${DJANGO_TRUST_ANCHOR:-http://federation-authority:8000}
|
||||
LOAD_FIXTURE_ON_EMPTY_DB: ${FEDERATION_AUTHORITY_LOAD_FIXTURE_ON_EMPTY_DB:-true}
|
||||
ports:
|
||||
- "${FEDERATION_AUTHORITY_PORT:-8000}:8000"
|
||||
volumes:
|
||||
- ./federation_authority:/app/federation_authority
|
||||
- federation-authority-data:/app/federation_authority/db
|
||||
restart: unless-stopped
|
||||
|
||||
provider:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
network_mode: host
|
||||
working_dir: /app/provider
|
||||
command: ["/app/provider", "8002"]
|
||||
environment:
|
||||
DJANGO_SECRET_KEY: ${PROVIDER_SECRET_KEY:-visione-cie-provider-local-dev}
|
||||
DJANGO_ALLOWED_HOSTS: ${CIE_AUTH_ALLOWED_HOSTS:-*}
|
||||
DJANGO_TRUST_ANCHOR: ${DJANGO_TRUST_ANCHOR:-http://federation-authority:8000}
|
||||
DJANGO_PROVIDER_ISSUER: ${DJANGO_PROVIDER_ISSUER:-http://provider:8002/oidc/op}
|
||||
LOAD_FIXTURE_ON_EMPTY_DB: ${PROVIDER_LOAD_FIXTURE_ON_EMPTY_DB:-true}
|
||||
ports:
|
||||
- "${PROVIDER_PORT:-8002}:8002"
|
||||
volumes:
|
||||
- ./provider:/app/provider
|
||||
- provider-data:/app/provider/db
|
||||
depends_on:
|
||||
- federation-authority
|
||||
restart: unless-stopped
|
||||
|
||||
relying-party:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
network_mode: host
|
||||
working_dir: /app/relying_party
|
||||
command: ["/app/relying_party", "8001"]
|
||||
environment:
|
||||
DJANGO_SECRET_KEY: ${RELYING_PARTY_SECRET_KEY:-visione-cie-rp-local-dev}
|
||||
DJANGO_ALLOWED_HOSTS: ${CIE_AUTH_ALLOWED_HOSTS:-*}
|
||||
DJANGO_TRUST_ANCHOR: ${DJANGO_TRUST_ANCHOR:-http://federation-authority:8000}
|
||||
DJANGO_PROVIDER_ISSUER: ${DJANGO_PROVIDER_ISSUER:-http://provider:8002/oidc/op}
|
||||
DJANGO_RP_BACKEND_EXCHANGE_URL: ${DJANGO_RP_BACKEND_EXCHANGE_URL:-http://visione-backend:5555/api/v1/auth/cie/exchange}
|
||||
DJANGO_RP_SHARED_SECRET: ${DJANGO_RP_SHARED_SECRET:-change-me-for-local-dev}
|
||||
DJANGO_RP_DEFAULT_PROVIDER: ${DJANGO_RP_DEFAULT_PROVIDER:-http://provider:8002/oidc/op}
|
||||
LOAD_FIXTURE_ON_EMPTY_DB: ${RELYING_PARTY_LOAD_FIXTURE_ON_EMPTY_DB:-true}
|
||||
ports:
|
||||
- "${RELYING_PARTY_PORT:-8001}:8001"
|
||||
volumes:
|
||||
- ./relying_party:/app/relying_party
|
||||
- relying-party-data:/app/relying_party/db
|
||||
depends_on:
|
||||
- federation-authority
|
||||
- provider
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
federation-authority-data:
|
||||
provider-data:
|
||||
relying-party-data:
|
||||
|
||||
Reference in New Issue
Block a user