feat(infra): add production Dockerfile and docker-compose.prod.yml

Multi-stage alpine-based build, healthcheck on /api/health, /data volume.
Verified end-to-end: image builds, container starts, health returns 200.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-17 15:41:20 +02:00
parent a22fb86479
commit ddb3419cd9
3 changed files with 74 additions and 0 deletions

25
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,25 @@
services:
kochwas:
build: .
image: kochwas:latest
ports:
- '3000:3000'
volumes:
- ./data:/data
environment:
- DATABASE_PATH=/data/kochwas.db
- IMAGE_DIR=/data/images
- SEARXNG_URL=http://searxng:8080
- NODE_ENV=production
depends_on:
- searxng
restart: unless-stopped
searxng:
image: searxng/searxng:latest
volumes:
- ./searxng:/etc/searxng
environment:
- BASE_URL=http://searxng:8080/
- INSTANCE_NAME=kochwas-search
restart: unless-stopped