28 lines
736 B
YAML
28 lines
736 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
image: nd-waas-engine:latest
|
|
container_name: waas_${CUSTOMER_SLUG:-kunden_app}
|
|
restart: always
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000
|
|
- DATA_DIR=/app/data
|
|
volumes:
|
|
# Hier werden site.config.json, sqlite.db, uploads etc. automatisch vom Container angelegt
|
|
- ./data:/app/data
|
|
ports:
|
|
# Anbindung an deinen händischen Nginx Reverse Proxy auf dem Host
|
|
- "127.0.0.1:${PORT:-8080}:3000"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "http://localhost:3000/api/health"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|