71 lines
2.6 KiB
YAML
71 lines
2.6 KiB
YAML
services:
|
|
federation-authority:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
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}
|
|
DJANGO_DB_PATH: /app/federation_authority/db/db.sqlite3
|
|
LOAD_FIXTURE_ON_EMPTY_DB: ${FEDERATION_AUTHORITY_LOAD_FIXTURE_ON_EMPTY_DB:-true}
|
|
expose:
|
|
- "8000"
|
|
volumes:
|
|
- federation-authority-data:/app/federation_authority/db
|
|
restart: unless-stopped
|
|
|
|
provider:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
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}
|
|
DJANGO_DB_PATH: /app/provider/db/db.sqlite3
|
|
LOAD_FIXTURE_ON_EMPTY_DB: ${PROVIDER_LOAD_FIXTURE_ON_EMPTY_DB:-true}
|
|
expose:
|
|
- "8002"
|
|
volumes:
|
|
- provider-data:/app/provider/db
|
|
depends_on:
|
|
- federation-authority
|
|
restart: unless-stopped
|
|
|
|
relying-party:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
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}
|
|
DJANGO_RP_BASE_URL: ${DJANGO_RP_BASE_URL:-http://relying-party:8001}
|
|
DJANGO_DB_PATH: /app/relying_party/db/db.sqlite3
|
|
LOAD_FIXTURE_ON_EMPTY_DB: ${RELYING_PARTY_LOAD_FIXTURE_ON_EMPTY_DB:-true}
|
|
expose:
|
|
- "8001"
|
|
volumes:
|
|
- relying-party-data:/app/relying_party/db
|
|
depends_on:
|
|
- federation-authority
|
|
- provider
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
federation-authority-data:
|
|
provider-data:
|
|
relying-party-data:
|