-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd: Fix 2-port tests and improve upgrade guide
Signed-off-by: arekkas <[email protected]>
- Loading branch information
Showing
17 changed files
with
265 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
########################################################################### | ||
####### FOR DEMONSTRATION PURPOSES ONLY ####### | ||
########################################################################### | ||
# # | ||
# If you have not yet read the tutorial, do so now: # | ||
# https://ory-am.gitbooks.io/hydra/content/tutorial.html # | ||
# # | ||
# This set up is only for demonstration purposes. The login # | ||
# endpoint can only be used if you follow the steps in the tutorial. # | ||
# # | ||
########################################################################### | ||
|
||
version: '2' | ||
|
||
services: | ||
|
||
hydra-migrate: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
links: | ||
- postgresd:postgresd | ||
environment: | ||
# - LOG_LEVEL=debug | ||
- DATABASE_URL=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable | ||
command: | ||
migrate sql -e | ||
restart: on-failure | ||
|
||
hydra-admin: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
links: | ||
- postgresd:postgresd | ||
# Uncomment the following line to use mysql instead. | ||
# - mysqld:mysqld | ||
depends_on: | ||
- hydra-migrate | ||
ports: | ||
- "4445:4445" | ||
command: | ||
serve admin --dangerous-force-http | ||
environment: | ||
# - LOG_LEVEL=debug | ||
- OAUTH2_ISSUER_URL=http://localhost:4444 | ||
- OAUTH2_CONSENT_URL=http://localhost:3000/consent | ||
- OAUTH2_LOGIN_URL=http://localhost:3000/login | ||
- DATABASE_URL=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable | ||
# Uncomment the following line to use mysql instead. | ||
# - DATABASE_URL=mysql://root:secret@tcp(mysqld:3306)/mysql?parseTime=true | ||
- SYSTEM_SECRET=youReallyNeedToChangeThis | ||
- OAUTH2_SHARE_ERROR_DEBUG=1 | ||
# - OAUTH2_ACCESS_TOKEN_STRATEGY=jwt | ||
restart: unless-stopped | ||
|
||
hydra: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
links: | ||
- postgresd:postgresd | ||
# Uncomment the following line to use mysql instead. | ||
# - mysqld:mysqld | ||
depends_on: | ||
- hydra-migrate | ||
ports: | ||
- "4444:4444" | ||
command: | ||
serve public --dangerous-force-http | ||
environment: | ||
# - LOG_LEVEL=debug | ||
- OAUTH2_ISSUER_URL=http://localhost:4444 | ||
- OAUTH2_CONSENT_URL=http://localhost:3000/consent | ||
- OAUTH2_LOGIN_URL=http://localhost:3000/login | ||
- DATABASE_URL=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable | ||
# Uncomment the following line to use mysql instead. | ||
# - DATABASE_URL=mysql://root:secret@tcp(mysqld:3306)/mysql?parseTime=true | ||
- SYSTEM_SECRET=youReallyNeedToChangeThis | ||
- OAUTH2_SHARE_ERROR_DEBUG=1 | ||
# - OAUTH2_ACCESS_TOKEN_STRATEGY=jwt | ||
restart: unless-stopped | ||
|
||
consent: | ||
environment: | ||
- HYDRA_URL=http://hydra-admin:4445 | ||
image: oryd/hydra-login-consent-node:v1.0.0-beta.7 | ||
links: | ||
- hydra-admin | ||
ports: | ||
- "3000:3000" | ||
restart: unless-stopped | ||
|
||
postgresd: | ||
image: postgres:9.6 | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- POSTGRES_USER=hydra | ||
- POSTGRES_PASSWORD=secret | ||
- POSTGRES_DB=hydra | ||
|
||
# Uncomment the following section to use mysql instead. | ||
# mysqld: | ||
# image: mysql:5.7 | ||
# environment: | ||
# - MYSQL_ROOT_PASSWORD=secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.