forked from ory/hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (77 loc) · 2.61 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
###########################################################################
####### 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-alpine
links:
- postgresd:postgresd
command:
migrate sql postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable
restart: on-failure
hydra:
build:
context: .
dockerfile: Dockerfile-alpine
links:
- postgresd:postgresd
# Uncomment the following line to use mysql instead.
# - mysqld:mysqld
depends_on:
- hydra-migrate
volumes:
- hydravolume:/root
ports:
- "4444:4444"
- "4445:4445"
command:
host --dangerous-auto-logon --dangerous-force-http --disable-telemetry
environment:
- LOG_LEVEL=debug
- ISSUER=http://localhost:4444
- CONSENT_URL=http://localhost:3000/consent
- 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
- FORCE_ROOT_CLIENT_CREDENTIALS=admin:demo-password
- SYSTEM_SECRET=youReallyNeedToChangeThis
restart: unless-stopped
consent:
environment:
- HYDRA_URL=http://hydra:4444
- HYDRA_CLIENT_ID=admin
- HYDRA_CLIENT_SECRET=demo-password
- NODE_TLS_REJECT_UNAUTHORIZED=0
image: oryd/hydra-consent-app-express:v0.10.0-alpha.7
links:
- hydra
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
volumes:
hydravolume:
driver: local