2020-10-11 11:51:18 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
|
|
|
|
jaeger:
|
|
|
|
image: jaegertracing/all-in-one:latest
|
|
|
|
ports:
|
|
|
|
- "16686:16686"
|
|
|
|
- "14268:14268"
|
|
|
|
|
|
|
|
api:
|
|
|
|
image: paramah/lwan
|
|
|
|
volumes:
|
|
|
|
- ./api-mocks:/opt/lwan/wwwroot
|
|
|
|
ports:
|
|
|
|
- "8000:8080"
|
2020-10-14 18:55:43 +00:00
|
|
|
|
|
|
|
hydra-migrate:
|
|
|
|
image: oryd/hydra:v1.8.5
|
|
|
|
environment:
|
|
|
|
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
|
|
|
|
command:
|
|
|
|
migrate sql -e --yes
|
|
|
|
restart: on-failure
|
|
|
|
|
|
|
|
hydra:
|
|
|
|
image: oryd/hydra:v1.8.5
|
|
|
|
ports:
|
|
|
|
- "4444:4444" # Public port
|
|
|
|
- "4445:4445" # Admin port
|
|
|
|
- "5555:5555" # Port for hydra token user
|
|
|
|
command:
|
|
|
|
serve all --dangerous-force-http
|
|
|
|
environment:
|
|
|
|
- TRACING_PROVIDER=jaeger
|
|
|
|
- TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
|
|
|
|
- TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
|
|
|
|
- TRACING_PROVIDERS_JAEGER_SAMPLING_TYPE=const
|
|
|
|
- TRACING_PROVIDERS_JAEGER_SAMPLING_VALUE=1
|
|
|
|
- URLS_SELF_ISSUER=http://127.0.0.1:4444
|
|
|
|
- URLS_CONSENT=http://127.0.0.1:3000/consent
|
|
|
|
- URLS_LOGIN=http://127.0.0.1:3000/login
|
|
|
|
- URLS_LOGOUT=http://127.0.0.1:3000/logout
|
|
|
|
- DSN=memory
|
|
|
|
- STRATEGIES_ACCESS_TOKEN=jwt
|
|
|
|
- SECRETS_SYSTEM=dUjs9EV7BuyXUcckKBVrYOdacsggIkna
|
|
|
|
- OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public
|
|
|
|
- OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=dUjs9EV7BuyXUcckKBVrYOdacsggIkna
|
|
|
|
- SERVE_COOKIES_SAME_SITE_MODE=Lax
|
|
|
|
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- hydra-migrate
|
2020-10-11 11:51:18 +00:00
|
|
|
|
|
|
|
kraken:
|
|
|
|
image: devopsfaith/krakend:config-watcher
|
|
|
|
volumes:
|
|
|
|
- ./krakend:/etc/krakend
|
|
|
|
ports:
|
|
|
|
- "1234:1234"
|
|
|
|
- "8080:8080"
|
|
|
|
- "8091:8091"
|
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
- jaeger
|
|
|
|
|