This repository contains a starter kit for Ory products. It is a collection of Docker Compose files that can be used to start with Ory products quickly.
- Identity and User Management (CIAM): Ory Kratos
- OAuth 2.0 and OpenID Connect Provider: Ory Hydra
- Permission and Role Management (implementation of Zanzibar): Ory Keto (coming soon)
- Identity and Access Proxy (IAP): Ory Oathkeeper
- Clone this repository:
git clone https://github.com/cerberauth/account-ory-products.git
cd account-ory-products
- Configure a local domain for the services. Add the following line to your
/etc/hosts
file:
127.0.0.1 auth.example.localhost
127.0.0.1 oauth.example.localhost
- Copy the
.env.example
file to.env
:
cp .env.example .env
Edit the .env
file and set the values for the environment variables. If you have any doubts, you can check the according Ory documentation for each product.
In order to generate secure values for the environment variables, you can use the following command:
openssl rand -base64 32
- Start the services:
First, create the network:
docker network create hydranet
docker network create kratosnet
Then, you can start the services:
docker-compose -f docker-compose-kratos.yml -f docker-compose.yml up -d
If you want to start Hydra, you can use the following command:
docker-compose -f docker-compose-hydra.yml -f docker-compose-kratos.yml -f docker-compose.yml up -d
- Access the services: http://auth.example.localhost/welcome
For your new OpenID Connect Provider, you will have to create a new OAuth 2.0 client. You can do this by following the Ory Hydra documentation.