1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

Add Docker configs for dashboard

This commit is contained in:
wlinator 2024-09-23 17:03:37 +02:00
parent a804b4118a
commit 9935b5473f
3 changed files with 32 additions and 0 deletions

12
dashboard/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM --platform=$BUILDPLATFORM node:20.16.0-bullseye-slim as builder
RUN mkdir /project
WORKDIR /project
RUN npm install -g @angular/cli@18.1.0
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
CMD ["ng", "serve", "--host", "0.0.0.0"]

View file

@ -18,6 +18,16 @@ services:
db:
condition: service_healthy
dashboard:
build: ./dashboard
container_name: lumi-dashboard
restart: always
ports:
- 8081:4200
depends_on:
db:
condition: service_healthy
db:
image: mariadb
container_name: lumi-db

View file

@ -14,6 +14,16 @@ services:
db:
condition: service_healthy
dashboard:
build: ./dashboard
container_name: lumi-dashboard
restart: always
ports:
- 8081:4200
depends_on:
db:
condition: service_healthy
db:
image: mariadb
container_name: lumi-db