Update Dockerbuild
This commit is contained in:
@@ -11,3 +11,4 @@ frontend/dist
|
|||||||
backend/.env
|
backend/.env
|
||||||
backend/node_modules
|
backend/node_modules
|
||||||
frontend/node_modules
|
frontend/node_modules
|
||||||
|
backend/data/*.db*
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ COPY backend/ ./
|
|||||||
# public leeren
|
# public leeren
|
||||||
RUN rm -rf ./public/*
|
RUN rm -rf ./public/*
|
||||||
|
|
||||||
|
# frische Datenbank vorbereiten
|
||||||
|
RUN rm -rf ./data && mkdir -p ./data && chown node:node ./data
|
||||||
|
|
||||||
# Inhalt von dist inklusive Unterordner direkt nach public kopieren
|
# Inhalt von dist inklusive Unterordner direkt nach public kopieren
|
||||||
COPY --from=frontend-build /app/frontend/dist/. ./public/
|
COPY --from=frontend-build /app/frontend/dist/. ./public/
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,13 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "4001:4001"
|
- "4001:4001"
|
||||||
|
volumes:
|
||||||
|
- stackpulse_data:/app/backend/data
|
||||||
environment:
|
environment:
|
||||||
PORTAINER_URL: "Your_Portainer_Server_Address"
|
PORTAINER_URL: "Your_Portainer_Server_Address"
|
||||||
PORTAINER_API_KEY: "Your_Portainer_API_Key"
|
PORTAINER_API_KEY: "Your_Portainer_API_Key"
|
||||||
PORTAINER_ENDPOINT_ID: "Your_Portainer_Endpoint_ID"
|
PORTAINER_ENDPOINT_ID: "Your_Portainer_Endpoint_ID"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
stackpulse_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user