Dockerize webui & add .env

This commit is contained in:
lumijiez
2025-04-07 03:08:08 +03:00
parent 884a07d961
commit ba4273e810
2 changed files with 26 additions and 1 deletions

1
.gitignore vendored
View File

@@ -12,3 +12,4 @@ riderModule.iml
*.suo
*.sln.docstates
*.csproj.user
.env

View File

@@ -4,3 +4,27 @@
build:
context: .
dockerfile: src/Printbase.WebApi/Dockerfile
ports:
- "${WEBAPI_PORT}:80"
depends_on:
- db
webui:
build:
context: ./webui
dockerfile: Dockerfile
ports:
- "${WEBUI_PORT}:3000"
environment:
- NODE_ENV=${NODE_ENV}
depends_on:
- printbase.webapi
db:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: sqlserver
environment:
SA_PASSWORD: "${SA_PASSWORD}"
ACCEPT_EULA: "Y"
ports:
- "${SQL_PORT}:1433"