acfbd6e527
Both crashes above were masking a second defect: once each app actually stayed up, it sat permanently unhealthy because its healthcheck called wget, and neither image has wget or curl -- only node. Traefik does not route to an unhealthy container, so both would have served 404 to the customer regardless. Switched both to the Node-exec family (http.get, exit non-zero on 5xx/error). Campaign 7 catalog sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nn3VgQk9iwEGgyx6QJ2NvE
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
# Papra - Minimalista dokumentumtár és rendszerező
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: None (file-based)
|
|
# RAM: ~50M (mem_limit: 256M) | Pi-compatible: Yes
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
|
|
services:
|
|
papra:
|
|
image: ghcr.io/papra-hq/papra:26.6.1-rootless
|
|
container_name: papra
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- APP_BASE_URL=https://${SUBDOMAIN}.${DOMAIN}
|
|
- AUTH_SECRET=${AUTH_SECRET}
|
|
volumes:
|
|
- papra_data:/app/data
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
healthcheck:
|
|
# A papra képfájlban nincs wget és nincs curl — csak node. A korábbi wget
|
|
# próba ezért soha nem futott le, a konténer véglegesen unhealthy maradt,
|
|
# és a Traefik nem irányított rá forgalmat (404).
|
|
test: ["CMD", "node", "-e", "const http=require('http');http.get('http://127.0.0.1:1221',r=>process.exit(r.statusCode<500?0:1)).on('error',()=>process.exit(1))"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.papra.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.papra.entrypoints=websecure"
|
|
- "traefik.http.routers.papra.tls=true"
|
|
- "traefik.http.routers.papra.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.papra.loadbalancer.server.port=1221"
|
|
|
|
volumes:
|
|
papra_data:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|