-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
68 lines (66 loc) · 2.09 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
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
version: "3"
networks:
ukauth-network:
driver: bridge
services:
authorization-server:
networks:
- ukauth-network
build: ./UKAuth
volumes:
- ./UKAUth/dist:/usr/src/app/dist
- /usr/src/app/node_modules
ports:
- 3002:3002
- 9228:9229
working_dir: /usr/src/app
command: "npm run map-debug"
public-client:
environment:
- protectedResource=https://protected-resource:3001/ssn
- accessTokenEndpoint=https://authorization-server:3002/token
- authorizationEndpoint=https://authorization-server:3002/authorize
links:
- "protected-resource"
- "authorization-server"
networks:
- ukauth-network
build: ./UKPublicClient
volumes:
- ./UKPublicClient/dist:/usr/src/app/dist
- /usr/src/app/node_modules
ports:
- 4200:4200
working_dir: /usr/src/app
command: "npm run start-docker"
client:
environment:
- protectedResource=https://protected-resource:3001/ssn
- accessTokenEndpoint=https://authorization-server:3002/token
- authorizationEndpoint=https://authorization-server:3002/authorize
links:
- "protected-resource"
- "authorization-server"
networks:
- ukauth-network
build: ./UKClient
volumes:
- ./UKClient/dist:/usr/src/app/dist
- /usr/src/app/node_modules
ports:
- 3000:3000
- 9226:9229
working_dir: /usr/src/app
command: "npm run map-debug"
protected-resource:
networks:
- ukauth-network
build: ./UKProtectedResource
volumes:
- ./UKProtectedResource/dist:/usr/src/app/dist
- /usr/src/app/node_modules
ports:
- 3001:3001
- 9227:9229
working_dir: /usr/src/app
command: "npm run map-debug"