feat(docker): add production Dockerfile, docker-compose setup and healthcheck API

This commit is contained in:
Daniel S
2026-08-09 21:28:10 +02:00
parent 03ceb3de7f
commit b021f9aaa7
4 changed files with 99 additions and 21 deletions

View File

@@ -1,15 +1,25 @@
version: '3.8'
services:
website:
build: .
image: gitea.hephex.de/daniel/websitedummy:latest
container_name: websitedummy_app
kunden_app:
build:
context: .
dockerfile: Dockerfile
image: nd-waas-engine:latest
container_name: kunden_instanz_app
restart: always
ports:
- "8080:4321"
environment:
- HOST=0.0.0.0
- PORT=4321
- NODE_ENV=production
- PORT=3000
- DATA_DIR=/app/data
volumes:
- ./app/data:/app/data
# Kunden-Konfigurationsdaten & Uploads bleiben bei Updates persistent
- ./data:/app/data
ports:
# Interne Port-Anbindung für den händischen Nginx Reverse Proxy
- "127.0.0.1:8080:3000"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"