feat(PROJ-27): Docker-Support + install.sh v2.0 (native + Docker-Modus)

Adds multi-stage Dockerfiles (Go+Xapian CGO, Next.js standalone),
docker-compose.yml, webhook-basierter Deploy-Flow und erweitertes
install.sh mit interaktiver Modus-Auswahl.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-03-31 10:18:11 +02:00
parent 842640c3aa
commit 5f0c7a7e6d
9 changed files with 814 additions and 224 deletions
+54
View File
@@ -0,0 +1,54 @@
services:
# ── PostgreSQL ──────────────────────────────────────────────────────────────
postgres:
image: postgres:16-bookworm
restart: unless-stopped
environment:
POSTGRES_DB: archivmail
POSTGRES_USER: archivmail
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U archivmail"]
interval: 10s
timeout: 5s
retries: 5
# ── Go Backend ──────────────────────────────────────────────────────────────
archivmail:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
volumes:
- /etc/archivmail:/etc/archivmail:ro
- archivmail_data:/var/archivmail
ports:
- "127.0.0.1:8080:8080" # API (nginx proxied)
- "2525:2525" # SMTP BCC
- "1143:1143" # IMAP (nginx proxied für TLS)
environment:
- TZ=Europe/Berlin
# ── Next.js Frontend ────────────────────────────────────────────────────────
archivmail-web:
build:
context: .
dockerfile: Dockerfile.web
restart: unless-stopped
depends_on:
- archivmail
ports:
- "127.0.0.1:3000:3000" # Frontend (nginx proxied)
environment:
- NEXT_PUBLIC_API_URL=http://archivmail:8080
- TZ=Europe/Berlin
volumes:
postgres_data:
archivmail_data: