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_SYSTEM
andOIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT
to 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_FROM
to the SSL server's subnet - Set
SC_FRONTEND
to 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