forked from brunobritodev/JPProject.IdentityServer4.SSO
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.mssql.yml
95 lines (89 loc) · 3.3 KB
/
docker-compose.mssql.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
95
# BEFORE RUNNING: Set jpproject to 127.0.0.1 in your hosts file
# RUN: docker-compose -f docker-compose.mssql.yml up
version: "3"
services:
#############################
# Database
#############################
jpdatabase:
image: mcr.microsoft.com/mssql/server:2017-latest
restart: unless-stopped
expose:
- "1433"
environment:
ACCEPT_EULA: "Y"
# SQL SA Password must be: min 8 characters, upper, lower and number or special character
MSSQL_SA_PASSWORD: Let_Me_In
#############################
# Server SSO
#############################
jpproject:
image: "jpproject-sso"
build:
context: .
dockerfile: sso.dockerfile
ports:
- "5000:5000"
links:
- jpdatabase
depends_on:
- jpdatabase
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5000
# using sa@tempdb as sql server image doesn't have envvars to create a database or user with the startup
CUSTOMCONNSTR_SSOConnection: "Server=jpdatabase;Database=tempdb;User ID=sa;Password=Let_Me_In;MultipleActiveResultSets=true"
ApplicationSettings:EnableExternalProviders: "false" # Because Auth url is http://jpproject (modified by host to point to 127.0.0.1), then Google and Facebook reject it.
ApplicationSettings:DatabaseType: SqlServer
ApplicationSettings:DefaultUser: bruno
ApplicationSettings:DefaultPass: Pa$$word123
ApplicationSettings:DefaultEmail: [email protected]
ApplicationSettings:UserManagementURL: http://localhost:4200
ApplicationSettings:IS4AdminUi: http://localhost:4300
ApplicationSettings:ResourceServerURL: http://localhost:5003
CertificateOptions:Type: Temporary
# #############################
# # Management API
# #############################
jpproject-api:
image: jpproject-api
build:
context: .
dockerfile: api.dockerfile
ports:
- "5003:80"
depends_on:
- jpdatabase
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: http://+
# using sa@tempdb as sql server image doesn't have envvars to create a database or user with the startup
CUSTOMCONNSTR_SSOConnection: "Server=jpdatabase;Database=tempdb;User ID=sa;Password=Let_Me_In;MultipleActiveResultSets=true"
ApplicationSettings:Authority: "http://jpproject:5000"
ApplicationSettings:DatabaseType: SqlServer
#############################
# User management UI
#############################
user-ui:
image: jpproject-user-management-ui
build:
context: .
dockerfile: ui-user-management.dockerfile
depends_on:
- jpproject-api
- jpproject
ports:
- 4200:80
#############################
# Admin Ui
#############################
admin-ui:
image: jpproject-admin-ui
build:
context: .
dockerfile: admin-ui.dockerfile
depends_on:
- jpproject-api
- jpproject
ports:
- 4300:80