Feat: dockerize the project with Dockerfile and docker-compose
- Added Dockerfile for containerizing the app. - Created docker-compose.yml for managing services. - Updated connection strings for Docker compatibility.
This commit is contained in:
139
obj/Docker/MergedDockerCompose31.cache
Normal file
139
obj/Docker/MergedDockerCompose31.cache
Normal file
@@ -0,0 +1,139 @@
|
||||
name: dockercompose6909980062609839317
|
||||
services:
|
||||
db:
|
||||
environment:
|
||||
POSTGRES_DB: SurveyBeta
|
||||
POSTGRES_PASSWORD: MAJEDali645
|
||||
POSTGRES_USER: postgres
|
||||
image: postgres:latest
|
||||
networks:
|
||||
default: null
|
||||
ports:
|
||||
- mode: ingress
|
||||
target: 5432
|
||||
published: "5432"
|
||||
protocol: tcp
|
||||
restart: always
|
||||
volumes:
|
||||
- type: volume
|
||||
source: db_data
|
||||
target: /var/lib/postgresql/data
|
||||
volume: {}
|
||||
survey-beta:
|
||||
build:
|
||||
context: C:\Users\alioa\Source\Repos\survey-beta2
|
||||
dockerfile: survey-beta/Dockerfile
|
||||
args:
|
||||
BUILD_CONFIGURATION: Debug
|
||||
LAUNCHING_FROM_VS: "true"
|
||||
labels:
|
||||
com.microsoft.created-by: visual-studio
|
||||
com.microsoft.visual-studio.project-name: survey-beta
|
||||
target: base
|
||||
container_name: survey-beta
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_started
|
||||
required: true
|
||||
entrypoint:
|
||||
- dotnet
|
||||
- --roll-forward
|
||||
- Major
|
||||
- /VSTools/DistrolessHelper/DistrolessHelper.dll
|
||||
- --wait
|
||||
environment:
|
||||
ASPNETCORE_ENVIRONMENT: Development
|
||||
ASPNETCORE_HTTP_PORTS: "8080"
|
||||
ASPNETCORE_HTTPS_PORTS: "8081"
|
||||
ASPNETCORE_LOGGING__CONSOLE__DISABLECOLORS: "true"
|
||||
ConnectionStrings__DefaultConnection: Host=dockercompose6909980062609839317-db-1;Database=SurveyBeta;Username=postgres;Password=MAJEDali645
|
||||
DOTNET_USE_POLLING_FILE_WATCHER: "1"
|
||||
NUGET_FALLBACK_PACKAGES: ""
|
||||
image: surveybeta:dev
|
||||
labels:
|
||||
com.microsoft.visualstudio.debuggee.arguments: ' --additionalProbingPath /.nuget/packages "/app/bin/Debug/net8.0/survey-beta.dll"'
|
||||
com.microsoft.visualstudio.debuggee.killprogram: dotnet --roll-forward Major /VSTools/DistrolessHelper/DistrolessHelper.dll --stop dotnet
|
||||
com.microsoft.visualstudio.debuggee.program: dotnet
|
||||
com.microsoft.visualstudio.debuggee.workingdirectory: /app
|
||||
networks:
|
||||
default: null
|
||||
ports:
|
||||
- mode: ingress
|
||||
target: 8080
|
||||
published: "8080"
|
||||
protocol: tcp
|
||||
- mode: ingress
|
||||
target: 8081
|
||||
published: "8081"
|
||||
protocol: tcp
|
||||
- mode: ingress
|
||||
target: 8080
|
||||
protocol: tcp
|
||||
- mode: ingress
|
||||
target: 8081
|
||||
protocol: tcp
|
||||
tty: true
|
||||
volumes:
|
||||
- type: bind
|
||||
source: C:\Users\alioa\Source\Repos\survey-beta2\survey-beta
|
||||
target: /app
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: C:\Users\alioa\AppData\Roaming\Microsoft\UserSecrets
|
||||
target: /home/app/.microsoft/usersecrets
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: C:\Users\alioa\AppData\Roaming\ASP.NET\Https
|
||||
target: /home/app/.aspnet/https
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: C:\Users\alioa\Source\Repos\survey-beta2
|
||||
target: /src
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: C:\Users\alioa\vsdbg\vs2017u5
|
||||
target: /remote_debugger
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: C:\Users\alioa\.nuget\packages
|
||||
target: /.nuget/packages
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: C:\Users\alioa\AppData\Roaming\ASP.NET\Https
|
||||
target: /root/.aspnet/https
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: C:\Users\alioa\AppData\Roaming\Microsoft\UserSecrets
|
||||
target: /root/.microsoft/usersecrets
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: E:\codz\MSBuild\Sdks\Microsoft.Docker.Sdk\tools\linux-x64\net8.0
|
||||
target: /VSTools
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: true
|
||||
- type: bind
|
||||
source: E:\codz\Common7\IDE\CommonExtensions\Microsoft\HotReload
|
||||
target: /HotReloadAgent
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: true
|
||||
networks:
|
||||
default:
|
||||
name: dockercompose6909980062609839317_default
|
||||
volumes:
|
||||
db_data:
|
||||
name: dockercompose6909980062609839317_db_data
|
||||
Reference in New Issue
Block a user