forked from ivanpaulovich/clean-architecture-manga
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docker-compose (ivanpaulovich#234)
- Loading branch information
1 parent
2d889c6
commit b0c094d
Showing
122 changed files
with
759 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: '3.4' | ||
|
||
services: | ||
nginx: | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
accounts-api: | ||
environment: | ||
- ASPNETCORE_ENVIRONMENT=Production | ||
identity-server: | ||
environment: | ||
- ASPNETCORE_ENVIRONMENT=Production | ||
- IDENTITY_SERVER_ORIGIN=https://wallet.local | ||
- RedirectUris=https://wallet.local/callback | ||
- PostLogoutRedirectUris=https://wallet.local | ||
- AllowedCorsOrigins=https://wallet.local | ||
wallet-spa: | ||
build: | ||
args: | ||
ENV: Production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDzjCCAragAwIBAgIJAPi+ReDLm74xMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV | ||
BAYTAkFVMRMwEQYDVQQIEwpTb21lL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YHEl | ||
jZ6h0xgbhCzTsVTsad4M1V3uwYM1R32+53540ZqLcW4/mLqFSCe7pJna9GJhPps2 | ||
3U93ga3MC2ff2ZUFJxB+O3ja30OKEjL5nArtK2gw176fCdD5xEVZmfCBGxLzmRx/ | ||
XK2Ytz8TBe4UJcurLSux6Wz+KnajH4+r2ysDK/NvyzRsQ0mxboiRs5jG2sJcbzQp | ||
DZB0xWlaStQUZbIZyMHl4QW9 | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC1wF/Xg2832367 | ||
AvO1WdxeOtZ/WM3dHbwZjCORMBNUs+S/37qK72Us0jWKsRpSVll1Ls8X7jnWnYmO | ||
x7gS3MOULfCjf5d4bPyZAGN3GI4U7Oy3JfSdfRbxcpEDMGDg5D0+m3NMwoKjqw33 | ||
BkHjYOh2IcW00Wf38Uq8IUJ8ncPM/LmHJHzA8dLlzndpizW3x0ngd2x/3ZS8kKup | ||
yG/u0S6q97uWt1SVOBxdx1CG40ynPmENqnRNg2T79CSUyHKZDqatcEGhttqxY3jL | ||
TyNct5C88L1BjsRh6POgBeCKhTG67GNt1CgEO5xJT9uSF0/kzLp09L/gUvLp0FbI | ||
ZDRR2NNFAgMBAAECggEAMgNX3EQMrMA3pVpwmay6mStzruNO8tOl2RnZB7DFAP/n | ||
qGz2NhkeLDFEDoAhkBq2zyosTpd9TvNW0PVgT8B0CSiDGVqY4ciL0cZrmHAnWNbB | ||
ZLyLDXNIhvRRtyDu57Omrr20AqFbtZHya9FK/DjEfw1YDCO7ilzZhd9ZHlWDdbp2 | ||
sCLjgtlSPKuaCNVCubQu6/eXwWui1C4AtBg68Kq4j7coJzBQ9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E KEY----- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
mkdir https | ||
openssl req -x509 -newkey rsa:2048 -keyout https/localhost.key -out https/localhost.crt -days 365 -nodes -config ssl-selfsigned.cnf | ||
openssl pkcs12 -export -out https/localhost.pfx -inkey https/localhost.key -in https/localhost.crt -name "Localhost selfsigned certificate" -password pass:MyCertificatePassword |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
if [ `ls -1 https/localhost.* 2>/dev/null | wc -l ` -gt 0 ]; | ||
then | ||
echo "0. Using certificates from $(tput setaf 3)https$(tput sgr0) folder." | ||
else | ||
echo "ERROR: Failed to find certificates. Check the specific makecert script for your OS." | ||
exit 1 | ||
fi | ||
echo "1. Building Docker images. This may take few minutes..." | ||
echo -e "\n\n\tEnsure Docker is up and running.\n\n" | ||
docker-compose build | ||
echo "2. Starting up applications. This may take few minutes..." | ||
docker-compose -f docker-compose.yml -f docker-compose.production.yml up -d | ||
echo -e "3. Manually add the entry $(tput setaf 3)127.0.0.1 wallet.local$(tput sgr0) to the hosts file." | ||
echo -e "\tBrowse to $(tput setaf 3)https://wallet.local/$(tput sgr0)\n\nUse the following credentials to login into Identity Server:\n\n\tUsername:\t$(tput setaf 3)alice$(tput sgr0)\n\tPassword:\t$(tput setaf 3)alice$(tput sgr0)" | ||
echo -e "\tRun $(tput setaf 3)docker ps$(tput sgr0) to check if all containers are up. The frontend SPA could take several minutes to get ready." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#!/bin/bash | ||
echo "1. Building Docker images in silent mode. This may take few minutes..." | ||
if [ `ls -1 https/localhost.* 2>/dev/null | wc -l ` -gt 0 ]; | ||
then | ||
echo "0. Using certificates from $(tput setaf 3)https$(tput sgr0) folder." | ||
else | ||
echo "ERROR: Failed to find certificates. Check the specific makecert script for your OS." | ||
exit 1 | ||
fi | ||
echo "1. Building Docker images. This may take few minutes..." | ||
echo -e "\n\n\tEnsure Docker is up and running.\n\n" | ||
docker-compose build --quiet | ||
echo "2. Starting up SQL Server in Docker..." | ||
docker-compose up -d sql1 | ||
echo "3. Updating DB using Entity Framework Tool..." | ||
./init-db | ||
echo -e "4. Starting up applications:" | ||
echo -e "\tIdentity Server." | ||
echo -e "\tAccounts." | ||
echo -e "\tSPA." | ||
docker-compose up -d | ||
echo -e "5. Browse to $(tput setaf 3)https://wallet.local/$(tput sgr0)\n\nUse the following credentials to login into Identity Server:\n\n\tUsername:\t$(tput setaf 3)alice$(tput sgr0)\n\tPassword:\t$(tput setaf 3)alice$(tput sgr0)" | ||
docker-compose build | ||
echo "2. Starting up applications. This may take few minutes..." | ||
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d | ||
echo -e "3. Manually add the entry $(tput setaf 3)127.0.0.1 wallet.local$(tput sgr0) to the hosts file." | ||
echo -e "\tBrowse to $(tput setaf 3)https://wallet.local:8081/$(tput sgr0)\n\nUse the following credentials to login into Identity Server:\n\n\tUsername:\t$(tput setaf 3)alice$(tput sgr0)\n\tPassword:\t$(tput setaf 3)alice$(tput sgr0)" | ||
echo -e "\tRun $(tput setaf 3)docker ps$(tput sgr0) to check if all containers are up. The frontend SPA could take several minutes to get ready." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/bash | ||
# Check out for multiple options to trust certificates | ||
# https://gist.github.com/epcim/03f66dfa85ad56604c7b8e6df79614e0 | ||
# | ||
dotnet dev-certs https -ep https/localhost.pfx -p MyCertificatePassword | ||
dotnet dev-certs https --trust | ||
dotnet dev-certs https --trust | ||
certutil -addstore -f "ROOT" https/localhost.crt |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/azds.yaml | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.