feat(docker): add production Dockerfile, docker-compose setup and healthcheck API
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user