Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 3de5855

Browse files
Merge pull request #50 from tracker1/patch-1
Create docker-compose.mssql.yml
2 parents eeac96b + 2cb2256 commit 3de5855

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

docker-compose.mssql.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# BEFORE RUNNING: Set jpproject to 127.0.0.1 in your hosts file
2+
# RUN: docker-compose -f docker-compose.mssql.yml up
3+
version: "3"
4+
5+
services:
6+
7+
#############################
8+
# Database
9+
#############################
10+
jpdatabase:
11+
image: mcr.microsoft.com/mssql/server:2017-latest
12+
restart: unless-stopped
13+
expose:
14+
- "1433"
15+
environment:
16+
ACCEPT_EULA: "Y"
17+
# SQL SA Password must be: min 8 characters, upper, lower and number or special character
18+
MSSQL_SA_PASSWORD: Let_Me_In
19+
20+
#############################
21+
# Server SSO
22+
#############################
23+
jpproject:
24+
image: "jpproject-sso"
25+
build:
26+
context: .
27+
dockerfile: sso.dockerfile
28+
ports:
29+
- "5000:5000"
30+
links:
31+
- jpdatabase
32+
depends_on:
33+
- jpdatabase
34+
environment:
35+
ASPNETCORE_ENVIRONMENT: Development
36+
ASPNETCORE_URLS: http://+:5000
37+
# using sa@tempdb as sql server image doesn't have envvars to create a database or user with the startup
38+
CUSTOMCONNSTR_SSOConnection: "Server=jpdatabase;Database=tempdb;User ID=sa;Password=Let_Me_In;MultipleActiveResultSets=true"
39+
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.
40+
ApplicationSettings:DatabaseType: SqlServer
41+
ApplicationSettings:DefaultUser: bruno
42+
ApplicationSettings:DefaultPass: Pa$$word123
43+
ApplicationSettings:DefaultEmail: [email protected]
44+
ApplicationSettings:UserManagementURL: http://localhost:4200
45+
ApplicationSettings:IS4AdminUi: http://localhost:4300
46+
ApplicationSettings:ResourceServerURL: http://localhost:5003
47+
CertificateOptions:Type: Temporary
48+
49+
# #############################
50+
# # Management API
51+
# #############################
52+
jpproject-api:
53+
image: jpproject-api
54+
build:
55+
context: .
56+
dockerfile: api.dockerfile
57+
ports:
58+
- "5003:80"
59+
depends_on:
60+
- jpdatabase
61+
environment:
62+
ASPNETCORE_ENVIRONMENT: "Development"
63+
ASPNETCORE_URLS: http://+
64+
# using sa@tempdb as sql server image doesn't have envvars to create a database or user with the startup
65+
CUSTOMCONNSTR_SSOConnection: "Server=jpdatabase;Database=tempdb;User ID=sa;Password=Let_Me_In;MultipleActiveResultSets=true"
66+
ApplicationSettings:Authority: "http://jpproject:5000"
67+
ApplicationSettings:DatabaseType: SqlServer
68+
69+
#############################
70+
# User management UI
71+
#############################
72+
user-ui:
73+
image: jpproject-user-management-ui
74+
build:
75+
context: .
76+
dockerfile: ui-user-management.dockerfile
77+
depends_on:
78+
- jpproject-api
79+
- jpproject
80+
ports:
81+
- 4200:80
82+
83+
#############################
84+
# Admin Ui
85+
#############################
86+
admin-ui:
87+
image: jpproject-admin-ui
88+
build:
89+
context: .
90+
dockerfile: admin-ui.dockerfile
91+
depends_on:
92+
- jpproject-api
93+
- jpproject
94+
ports:
95+
- 4300:80

0 commit comments

Comments
 (0)