forked from ory/oathkeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 2.24 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
###########################################################################
####### 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:
oathkeeper-migrate:
build:
context: .
dockerfile: Dockerfile
links:
- postgresd:postgresd
environment:
- LOG_LEVEL=debug
command:
migrate sql postgres://dbuser:secret@postgresd:5432/accesscontroldb?sslmode=disable
restart: on-failure
oathkeeper-proxy:
build:
context: .
dockerfile: Dockerfile
links:
- postgresd:postgresd
ports:
- "4455:4455"
depends_on:
- oathkeeper-api
command:
serve proxy
environment:
- LOG_LEVEL=debug
- PORT=4455
- ISSUER_URL=http://localhost:4455/
- OATHKEEPER_API_URL=http://oathkeeper-api:4456
- CREDENTIALS_ISSUER_ID_TOKEN_HS256_SECRET=arandomsecretarandomsecretarando
restart: on-failure
oathkeeper-api:
build:
context: .
dockerfile: Dockerfile
links:
- postgresd:postgresd
ports:
- "4456:4456"
depends_on:
- oathkeeper-migrate
command:
serve api
environment:
- LOG_LEVEL=debug
- PORT=4456
- DATABASE_URL=postgres://dbuser:secret@postgresd:5432/accesscontroldb?sslmode=disable
- ISSUER_URL=http://localhost:4455/
- CREDENTIALS_ISSUER_ID_TOKEN_HS256_SECRET=arandomsecretarandomsecretarando
restart: on-failure
postgresd:
image: postgres:9.6
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=accesscontroldb