This repository contains a Docker Compose definition to set up the authorization server required for OAuth2. It relies on Ory Hydra.
- Docker
- Copy .env.example to .env
- In .env:
- Set
SECRETS_SYSTEMandOIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALTto random and secure strings - If you use a test environment without HTTPS, set
SERVE_PARAMS=--dangerous-force-http - If you use HTTP for last mile, set
TLS_ALLOW_TERMINATION_FROMto the SSL server's subnet - Set
SC_FRONTENDto the client's URL - Set Postgres credentials and update them inside
DSN
- Set
- If not running, start your external network
- Set or disable the network in docker-compose.yml
- Run
docker-compose up