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:
2025-03-13 08:50:35 -07:00
parent b9036d8b7a
commit 61f06e474f
160 changed files with 7001 additions and 81 deletions

View File

@@ -0,0 +1,36 @@
name: dockercompose6909980062609839317
services:
survey-beta:
build:
context: C:\Users\alioa\Source\Repos\survey-beta2
dockerfile: survey-beta/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_HTTP_PORTS: "8080"
ASPNETCORE_HTTPS_PORTS: "8081"
image: surveybeta
networks:
default: null
ports:
- mode: ingress
target: 8080
protocol: tcp
- mode: ingress
target: 8081
protocol: tcp
volumes:
- 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
networks:
default:
name: dockercompose6909980062609839317_default