Skip to content

Commit b47fc71

Browse files
committed
added docker compose
1 parent 3cdfc15 commit b47fc71

File tree

13 files changed

+223
-36
lines changed

13 files changed

+223
-36
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,7 @@ host/Tasky.AdministrationService.IdentityServer/Logs/logs.txt
256256
host/Tasky.AdministrationService.HttpApi.Host/Logs/logs.txt
257257
host/Tasky.AdministrationService.Web.Host/Logs/logs.txt
258258
host/Tasky.AdministrationService.Web.Unified/Logs/logs.txt
259-
host/Tasky.AdministrationService.Blazor.Server.Host/Logs/logs.txt
259+
host/Tasky.AdministrationService.Blazor.Server.Host/Logs/logs.txt
260+
261+
NDependOut/*
262+
*.ndproj

Tasky.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tasky.ProjectService.TestBa
162162
EndProject
163163
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tasky.Shared.Microservice.Hosting", "shared\Tasky.Shared.Microservice.Hosting\Tasky.Shared.Microservice.Hosting.csproj", "{F5E002D0-009C-4C3E-97F4-6448649390CE}"
164164
EndProject
165+
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{E8E3594C-AB25-4419-9231-76690E50B329}"
166+
EndProject
165167
Global
166168
GlobalSection(SolutionConfigurationPlatforms) = preSolution
167169
Debug|Any CPU = Debug|Any CPU
@@ -396,6 +398,10 @@ Global
396398
{F5E002D0-009C-4C3E-97F4-6448649390CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
397399
{F5E002D0-009C-4C3E-97F4-6448649390CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
398400
{F5E002D0-009C-4C3E-97F4-6448649390CE}.Release|Any CPU.Build.0 = Release|Any CPU
401+
{E8E3594C-AB25-4419-9231-76690E50B329}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
402+
{E8E3594C-AB25-4419-9231-76690E50B329}.Debug|Any CPU.Build.0 = Debug|Any CPU
403+
{E8E3594C-AB25-4419-9231-76690E50B329}.Release|Any CPU.ActiveCfg = Release|Any CPU
404+
{E8E3594C-AB25-4419-9231-76690E50B329}.Release|Any CPU.Build.0 = Release|Any CPU
399405
EndGlobalSection
400406
GlobalSection(SolutionProperties) = preSolution
401407
HideSolutionNode = FALSE

apps/Tasky.IdentityServer/Tasky.IdentityServer.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
@@ -12,6 +12,7 @@
1212
<UserSecretsId>Tasky-4681b4fd-151f-4221-84a4-929d86723e4c</UserSecretsId>
1313
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
1414
<DockerfileContext>..\..</DockerfileContext>
15+
<DockerComposeProjectPath>..\..\docker-compose.dcproj</DockerComposeProjectPath>
1516
</PropertyGroup>
1617

1718
<ItemGroup>

docker-compose.dcproj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk">
3+
<PropertyGroup Label="Globals">
4+
<ProjectVersion>2.1</ProjectVersion>
5+
<DockerTargetOS>Linux</DockerTargetOS>
6+
<ProjectGuid>e8e3594c-ab25-4419-9231-76690e50b329</ProjectGuid>
7+
<DockerLaunchAction>LaunchBrowser</DockerLaunchAction>
8+
<DockerServiceUrl>{Scheme}://localhost:{ServicePort}</DockerServiceUrl>
9+
<DockerServiceName>tasky.identityserver</DockerServiceName>
10+
</PropertyGroup>
11+
<ItemGroup>
12+
<None Include="docker-compose.override.yml">
13+
<DependentUpon>docker-compose.yml</DependentUpon>
14+
</None>
15+
<None Include="docker-compose.yml" />
16+
<None Include=".dockerignore" />
17+
</ItemGroup>
18+
</Project>

docker-compose.override.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
version: '3.4'
2+
3+
services:
4+
tasky.identityserver:
5+
environment:
6+
- ASPNETCORE_ENVIRONMENT=Development
7+
- ASPNETCORE_URLS=https://+:443;http://+:80
8+
ports:
9+
- "80"
10+
- "443"
11+
volumes:
12+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
13+
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
14+
tasky.gateway:
15+
environment:
16+
- ASPNETCORE_ENVIRONMENT=Development
17+
- ASPNETCORE_URLS=https://+:443;http://+:80
18+
ports:
19+
- "80"
20+
- "443"
21+
volumes:
22+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
23+
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
24+
25+
tasky.administrationservice.httpapi.host:
26+
environment:
27+
- ASPNETCORE_ENVIRONMENT=Development
28+
- ASPNETCORE_URLS=https://+:443;http://+:80
29+
ports:
30+
- "80"
31+
- "443"
32+
volumes:
33+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
34+
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
35+
36+
tasky.identityservice.httpapi.host:
37+
environment:
38+
- ASPNETCORE_ENVIRONMENT=Development
39+
- ASPNETCORE_URLS=https://+:443;http://+:80
40+
ports:
41+
- "80"
42+
- "443"
43+
volumes:
44+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
45+
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
46+
47+
tasky.projectservice.httpapi.host:
48+
environment:
49+
- ASPNETCORE_ENVIRONMENT=Development
50+
- ASPNETCORE_URLS=https://+:443;http://+:80
51+
ports:
52+
- "80"
53+
- "443"
54+
volumes:
55+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
56+
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
57+
58+
tasky.saasservice.httpapi.host:
59+
environment:
60+
- ASPNETCORE_ENVIRONMENT=Development
61+
- ASPNETCORE_URLS=https://+:443;http://+:80
62+
ports:
63+
- "80"
64+
- "443"
65+
volumes:
66+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
67+
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro

docker-compose.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
version: '3.4'
2+
3+
services:
4+
tasky.identityserver:
5+
image: registry.antosubash.com/identityserver:dev
6+
build:
7+
context: .
8+
dockerfile: apps/Tasky.IdentityServer/Dockerfile
9+
10+
tasky.gateway:
11+
image: registry.antosubash.com/gateway:dev
12+
build:
13+
context: .
14+
dockerfile: gateway/Tasky.Gateway/Dockerfile
15+
16+
17+
tasky.administrationservice.httpapi.host:
18+
image: registry.antosubash.com/administration:dev
19+
build:
20+
context: .
21+
dockerfile: services/administration/host/Tasky.AdministrationService.HttpApi.Host/Dockerfile
22+
23+
24+
tasky.identityservice.httpapi.host:
25+
image: registry.antosubash.com/identityservice:dev
26+
build:
27+
context: .
28+
dockerfile: services/identity/host/Tasky.IdentityService.HttpApi.Host/Dockerfile
29+
30+
31+
tasky.projectservice.httpapi.host:
32+
image: registry.antosubash.com/projectservice:dev
33+
build:
34+
context: .
35+
dockerfile: services/project/host/Tasky.ProjectService.HttpApi.Host/Dockerfile
36+
37+
38+
tasky.saasservice.httpapi.host:
39+
image: registry.antosubash.com/saas:dev
40+
build:
41+
context: .
42+
dockerfile: services/saas/host/Tasky.SaaSService.HttpApi.Host/Dockerfile
43+
44+
45+
tasky.dbmigrator:
46+
image: registry.antosubash.com/migrator:dev
47+
build:
48+
context: .
49+
dockerfile: shared/Tasky.DbMigrator/Dockerfile
50+

gateway/Tasky.Gateway/Tasky.Gateway.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<UserSecretsId>b8ac103a-0ee9-4e52-b1cf-edad78d82b59</UserSecretsId>
88
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
99
<DockerfileContext>..\..</DockerfileContext>
10+
<DockerComposeProjectPath>..\..\docker-compose.dcproj</DockerComposeProjectPath>
1011
</PropertyGroup>
1112
<ItemGroup>
1213
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" />

services/administration/host/Tasky.AdministrationService.HttpApi.Host/Tasky.AdministrationService.HttpApi.Host.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<UserSecretsId>Tasky.AdministrationService-c2d31439-b723-48e2-b061-5ebd7aeb6010</UserSecretsId>
1010
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
1111
<DockerfileContext>..\..\..\..</DockerfileContext>
12+
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
1213
</PropertyGroup>
1314

1415
<ItemGroup>

services/identity/host/Tasky.IdentityService.HttpApi.Host/Tasky.IdentityService.HttpApi.Host.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<UserSecretsId>Tasky.IdentityService-c2d31439-b723-48e2-b061-5ebd7aeb6010</UserSecretsId>
1010
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
1111
<DockerfileContext>..\..\..\..</DockerfileContext>
12+
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
1213
</PropertyGroup>
1314

1415
<ItemGroup>
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{
2-
"iisSettings": {
3-
"windowsAuthentication": false,
4-
"anonymousAuthentication": true,
5-
"iisExpress": {
6-
"applicationUrl": "https://localhost:7004",
7-
"sslPort": 7004
8-
}
9-
},
102
"profiles": {
113
"IIS Express": {
124
"commandName": "IISExpress",
@@ -18,10 +10,25 @@
1810
"Tasky.ProjectService.Host": {
1911
"commandName": "Project",
2012
"launchBrowser": true,
21-
"applicationUrl": "https://localhost:7004",
2213
"environmentVariables": {
2314
"ASPNETCORE_ENVIRONMENT": "Development"
24-
}
15+
},
16+
"applicationUrl": "https://localhost:7004"
17+
},
18+
"Docker": {
19+
"commandName": "Docker",
20+
"launchBrowser": true,
21+
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
22+
"publishAllPorts": true,
23+
"useSSL": true
24+
}
25+
},
26+
"iisSettings": {
27+
"windowsAuthentication": false,
28+
"anonymousAuthentication": true,
29+
"iisExpress": {
30+
"applicationUrl": "https://localhost:7004",
31+
"sslPort": 7004
2532
}
2633
}
2734
}

0 commit comments

Comments
 (0)