Dockerize webui & add .env
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,3 +12,4 @@ riderModule.iml
|
|||||||
*.suo
|
*.suo
|
||||||
*.sln.docstates
|
*.sln.docstates
|
||||||
*.csproj.user
|
*.csproj.user
|
||||||
|
.env
|
||||||
24
compose.yaml
24
compose.yaml
@@ -4,3 +4,27 @@
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/Printbase.WebApi/Dockerfile
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user