forked from brunobritodev/JPProject.IdentityServer4.SSO
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
94 lines (85 loc) · 2.98 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
86
87
88
89
90
91
92
93
94
version: "3"
services:
#############################
# Database
#############################
jpdatabase:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: jp
MYSQL_DATABASE: jpproject
MYSQL_PASSWORD: 10203040
#############################
# Server SSO
#############################
jpproject-sso:
image: "jpproject-sso"
build:
context: .
dockerfile: sso.dockerfile
depends_on:
- jpdatabase
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5001
CUSTOMCONNSTR_SSOConnection: "server=jpdatabase,port=3306;database=jpproject;user=jp;password=10203040"
ApplicationSettings:EnableExternalProviders: "false" # Because Auth url is http://jpproject-sso (modified by host to point to 127.0.0.1), then Google and Facebook reject it.
ApplicationSettings:DatabaseType: MySql
ApplicationSettings:DefaultUser: bruno
ApplicationSettings:DefaultPass: Pa$$word123
ApplicationSettings:DefaultEmail: [email protected]
ApplicationSettings:UserManagementURL: http://localhost:4400
ApplicationSettings:IS4AdminUi: http://localhost:4300
ApplicationSettings:ResourceServerURL: http://localhost:5002
ApplicationSettings:ShowDefaultUserPass: "true"
CertificateOptions:Type: Temporary
# #############################
# # Management API
# #############################
jpproject-api:
image: jpproject-api
build:
context: .
dockerfile: api.dockerfile
depends_on:
- jpdatabase
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: http://+
CUSTOMCONNSTR_SSOConnection: "server=jpdatabase,port=3306;database=jpproject;user=jp;password=10203040"
ApplicationSettings:Authority: "http://jpproject-sso:5001"
ApplicationSettings:DatabaseType: MySql
#############################
# User management UI
#############################
jpproject-users:
image: jpproject-users
build:
context: .
dockerfile: users.dockerfile
args:
ENVIRONMENT: docker
#############################
# Admin UI
#############################
jpproject-admin-ui:
image: bhdebrito/jpproject-admin-ui
reverse-proxy:
container_name: jpproject
build:
context: .
dockerfile: nginx.dockerfile
ports:
- '5001:5001'
- '5002:5002'
- '4400:4400'
- '4300:4300'
depends_on:
- 'jpproject-api'
- 'jpproject-users'
- 'jpproject-sso'