ory-am/hydra

View on GitHub
test/e2e/docker-compose.yml

Summary

Maintainability
Test Coverage
version: "3"

services:
  hydra:
    depends_on:
      - jaeger
    image: oryd/hydra:e2e
    ports:
      - "5004:4444" # Public port
      - "5001:4445" # Admin port
    command: serve all --dev
    environment:
      - URLS_SELF_ISSUER=http://127_0_0_1:5004/
      - URLS_CONSENT=http://127_0_0_1:5002/consent
      - URLS_LOGIN=http://127_0_0_1:5002/login
      - URLS_LOGOUT=http://127_0_0_1:5002/logout
      - DSN=memory
      - SECRETS_SYSTEM=youReallyNeedToChangeThis
      - OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public,pairwise
      - OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=youReallyNeedToChangeThis
      - SERVE_PUBLIC_CORS_ENABLED=true
      - SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE
      - SERVE_ADMIN_CORS_ENABLED=true
      - SERVE_ADMIN_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE
      - LOG_LEVEL=debug
      - OAUTH2_EXPOSE_INTERNAL_ERRORS=1
      - TRACING_PROVIDER=jaeger
      - TRACING_PROVIDER_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
      - TRACING_PROVIDER_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
      - TRACING_PROVIDER_JAEGER_SAMPLING_TYPE=const
      - TRACING_PROVIDER_JAEGER_SAMPLING_VALUE=1
      - WEBFINGER_OIDC_DISCOVERY_USERINFO_URL=http://hydra:4444/userinfo
      - OIDC_DYNAMIC_CLIENT_REGISTRATION_ENABLED=true
    restart: unless-stopped

  consent:
    environment:
      - HYDRA_ADMIN_URL=http://hydra:4445
    image: oryd/hydra-login-consent-node:latest
    ports:
      - "5002:3000"
    restart: unless-stopped

  client:
    environment:
      - ADMIN_URL=http://hydra:4445
      - PUBLIC_URL=http://hydra:4444
      - PORT=5003
    build:
      context: _/oauth2-client
    ports:
      - "5003:5003"
    restart: unless-stopped

  jaeger:
    image: jaegertracing/all-in-one:1_7_0
    ports:
      - "9411:9411"