-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (38 loc) · 1.12 KB
/
docker-compose.yaml
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
services:
authorization-server:
image: oauth-starter
container_name: oauth-authorization-server
ports:
- "8887:8887"
command: authorizationserver
environment:
PORT: 8887
resource-server:
image: oauth-starter
container_name: oauth-resource-server
ports:
- "8888:8888"
command: resourceserver
environment:
PORT: 8888
web-server:
image: oauth-starter
container_name: oauth-web-server
ports:
- "8889:8889"
command: webserver
environment:
PORT: 8889
CREDENTIALS_FILE: '{"client_id":"101010","client_secret":"super_private","auth_uri":"http://localhost:8887/auth","token_uri":"http://oauth-authorization-server:8887/token","callback_url":"http://localhost:8889/callback"}'
web-server-react:
image: oauth-starter-web
container_name: oauth-web-server-react
ports:
- "8890:8890"
environment:
PORT: 8890
CLIENT_ID: aClientId
AUTH_URI: http://localhost:8887/auth
TOKEN_URI: http://localhost:8887/token
CALLBACK_URL: http://localhost:8890/#/callback
OAUTH_RESOURCE_SERVER: http://localhost:8888