mirror of https://github.com/ory/hydra
74 lines
2.3 KiB
YAML
74 lines
2.3 KiB
YAML
###########################################################################
|
|
####### FOR DEMONSTRATION PURPOSES ONLY #######
|
|
###########################################################################
|
|
# #
|
|
# If you have not yet read the tutorial, do so now: #
|
|
# https://www.ory.sh/docs/hydra/5min-tutorial #
|
|
# #
|
|
# This set up is only for demonstration purposes. The login #
|
|
# endpoint can only be used if you follow the steps in the tutorial. #
|
|
# #
|
|
###########################################################################
|
|
services:
|
|
sqlite:
|
|
image: busybox
|
|
volumes:
|
|
- hydra-sqlite:/mnt/sqlite
|
|
command: "chmod -R 777 /mnt/sqlite"
|
|
hydra:
|
|
image: oryd/hydra:v25.4.0
|
|
build:
|
|
context: .
|
|
dockerfile: .docker/Dockerfile-local-build
|
|
ports:
|
|
- "4444:4444" # Public port
|
|
- "4445:4445" # Admin port
|
|
- "5555:5555" # Port for hydra token user
|
|
command: serve -c /etc/config/hydra/hydra.yml all --dev
|
|
volumes:
|
|
- hydra-sqlite:/mnt/sqlite:rw
|
|
- type: bind
|
|
source: ./contrib/quickstart/5-min
|
|
target: /etc/config/hydra
|
|
pull_policy: missing
|
|
environment:
|
|
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- hydra-migrate
|
|
- sqlite
|
|
networks:
|
|
- intranet
|
|
hydra-migrate:
|
|
image: oryd/hydra:v25.4.0
|
|
build:
|
|
context: .
|
|
dockerfile: .docker/Dockerfile-local-build
|
|
environment:
|
|
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
|
|
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
|
|
pull_policy: missing
|
|
volumes:
|
|
- hydra-sqlite:/mnt/sqlite:rw
|
|
- type: bind
|
|
source: ./contrib/quickstart/5-min
|
|
target: /etc/config/hydra
|
|
restart: on-failure
|
|
networks:
|
|
- intranet
|
|
depends_on:
|
|
- sqlite
|
|
consent:
|
|
environment:
|
|
- HYDRA_ADMIN_URL=http://hydra:4445
|
|
image: oryd/hydra-login-consent-node:v25.4.0
|
|
ports:
|
|
- "3000:3000"
|
|
restart: unless-stopped
|
|
networks:
|
|
- intranet
|
|
networks:
|
|
intranet:
|
|
volumes:
|
|
hydra-sqlite:
|