hydra Docker & Self-Hosted Deployment

GitHub

Internet-scale OpenID Certifiedβ„’ OpenID Connect and OAuth2.1 provider that integrates with your user management through headless APIs.

RAW Compose
1. Pull Image (DOCKERHUB) docker pull oryd/hydra
2. Docker Run (1-Click Launch) docker run -d --name hydra -p 26257:26257 --restart always oryd/hydra:e2e
3. Podman Run podman run -d --name hydra -p 26257:26257 --restart always oryd/hydra:e2e
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/oryd/hydra:e2e
5. ORAS Pull (OCI Artifact) oras pull oryd/hydra:e2e
6. Compose Deployment docker compose up -d
test/e2e/docker-compose.cockroach.yml
Download .yml
version: "3"

services:
  hydra-migrate:
    image: oryd/hydra:e2e
    environment:
      - DSN=cockroach://root@cockroachd:26257/defaultdb?sslmode=disable&max_conns=20&max_idle_conns=4
    command: migrate sql up -e --yes
    restart: on-failure
    depends_on:
      "cockroachd":
        condition: service_healthy

  hydra:
    depends_on:
      hydra-migrate:
        condition: service_completed_successfully
    environment:
      - DSN=cockroach://root@cockroachd:26257/defaultdb?sslmode=disable&max_conns=20&max_idle_conns=4

  cockroachd:
    image: cockroachdb/cockroach:latest-v25.4
    ports:
      - "26257:26257"
    command: start-single-node --insecure
    volumes:
      - cockroach-data:/cockroach/cockroach-data:rw
    healthcheck:
      test: ["CMD", "cockroach", "node", "status", "--insecure"]
      interval: 1s
      timeout: 30s
      retries: 30
volumes:
  cockroach-data: