feat(docker): add automatic container entrypoint seeding script
Some checks failed
Production Build & Deploy / build-and-deploy (push) Failing after 9s
Some checks failed
Production Build & Deploy / build-and-deploy (push) Failing after 9s
This commit is contained in:
@@ -1,23 +1,25 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
kunden_app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
app:
|
||||
image: nd-waas-engine:latest
|
||||
container_name: kunden_instanz_app
|
||||
container_name: waas_${CUSTOMER_SLUG:-kunden_app}
|
||||
restart: always
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- DATA_DIR=/app/data
|
||||
volumes:
|
||||
# Kunden-Konfigurationsdaten & Uploads bleiben bei Updates persistent
|
||||
# Hier werden site.config.json, sqlite.db, uploads etc. automatisch vom Container angelegt
|
||||
- ./data:/app/data
|
||||
ports:
|
||||
# Interne Port-Anbindung für den händischen Nginx Reverse Proxy
|
||||
- "127.0.0.1:8080:3000"
|
||||
# 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:
|
||||
|
||||
Reference in New Issue
Block a user