-
Notifications
You must be signed in to change notification settings - Fork 186
/
docker-compose.yml
61 lines (58 loc) · 1.67 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
version: '3'
services:
mysql:
image: mysql
restart: always
container_name: mysql
ports:
- '3307:3306'
environment:
MYSQL_DATABASE: keyist
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: keyistuser
MYSQL_PASSWORD: keyistpassword
volumes:
- './sql/script.sql/:/docker-entrypoint-initdb.d/script.sql'
authorization_server:
image: 'keyist-authorization-server:latest'
build:
context: ./authorization_server
container_name: authorization_server
depends_on:
- mysql
environment:
- >-
SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/keyist?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=keyistuser
- SPRING_DATASOURCE_PASSWORD=keyistpassword
ports:
- '8081:8081'
resource_server:
image: 'keyist-resource-server:latest'
build:
context: ./resource_server
container_name: resource_server
depends_on:
- mysql
- authorization_server
environment:
- >-
SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/keyist?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=keyistuser
- SPRING_DATASOURCE_PASSWORD=keyistpassword
- 'SECURITY_AUTH_URL=http://authorization_server:8081/oauth/check_token'
- SECURITY_AUTH_CLIENT_ID=test
- >-
SECURITY_AUTH_CLIENT_PASSWORD=test
ports:
- '8080:8080'
client:
image: 'keyist-client:latest'
build:
context: ./client
container_name: client
depends_on:
- authorization_server
- resource_server
ports:
- '4200:80'