8ddd3c9da5
BusyBox wget (+ node/python/curl one-shots, incl mealie's socket tuple) resolve localhost -> IPv6 ::1 with no cross-family fallback; an IPv4-only-binding app reads docker-unhealthy while serving (vaultwarden, re-run 2026-07-06). Escalates that instance to the class. Scoped strictly to healthcheck test: lines (diff-reviewed: no env/config/label changed; .felhom.yml already clean). New REUSE.md convention row. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PSK5g6qYLknKj8u3QAFEr6
78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
# Claper - Interaktív prezentáció és közönség bevonás
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: postgres
|
|
# RAM: ~100M (mem_limit: 384M) | Pi-compatible: Yes
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# SECRET_KEY_BASE - Titkosítási kulcs (auto-generated)
|
|
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
|
|
|
|
services:
|
|
claper:
|
|
image: ghcr.io/claperco/claper:1.8
|
|
container_name: claper
|
|
restart: unless-stopped
|
|
depends_on:
|
|
claper-postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
- DATABASE_URL=postgresql://claper:${DB_PASSWORD}@claper-postgres:5432/claper
|
|
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
|
|
- BASE_URL=https://${SUBDOMAIN}.${DOMAIN}
|
|
volumes:
|
|
- claper_uploads:/app/priv/static/uploads
|
|
networks:
|
|
- traefik-public
|
|
- claper-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 384M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:4000"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.claper.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.claper.entrypoints=websecure"
|
|
- "traefik.http.routers.claper.tls=true"
|
|
- "traefik.http.routers.claper.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.claper.loadbalancer.server.port=4000"
|
|
|
|
claper-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: claper-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=claper
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- POSTGRES_DB=claper
|
|
- TZ=Europe/Budapest
|
|
volumes:
|
|
- claper_postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- claper-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U claper -d claper"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
volumes:
|
|
claper_postgres_data:
|
|
claper_uploads:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
claper-internal:
|