rfiles-online/backlog/tasks/task-3 - Deploy-rfiles.onli...

31 lines
1.4 KiB
Markdown

---
id: TASK-3
title: Deploy rfiles.online to Netcup
status: Done
assignee: []
created_date: '2026-02-17 22:32'
updated_date: '2026-02-22 01:29'
labels: []
dependencies: []
priority: high
---
## Description
<!-- SECTION:DESCRIPTION:BEGIN -->
Clone repo to /opt/apps/rfiles-online on Netcup, create .env with DB_PASSWORD/REDIS_PASSWORD/SECRET_KEY, run docker compose -f docker-compose.prod.yml up -d --build, verify migrations and health endpoint. Add DNS records (rfiles.online + *.rfiles.online CNAME to tunnel) and hostname to Cloudflare tunnel config.
<!-- SECTION:DESCRIPTION:END -->
## Implementation Notes
<!-- SECTION:NOTES:BEGIN -->
Deployed to Netcup at /opt/apps/rfiles-online. Fixed celery-beat crash (read-only filesystem) by redirecting schedule file to /tmp tmpfs. All 5 containers running: rfiles-api (healthy), rfiles-db (healthy), rfiles-redis (healthy), rfiles-celery-worker, rfiles-celery-beat. Traefik labels configured for rfiles.online, www.rfiles.online, and direct.rfiles.online.
Deployed 2026-02-22:
- Location: /opt/apps/rfiles-online on Netcup
- 5 containers: rfiles-api (healthy), rfiles-db, rfiles-redis, rfiles-celery-worker, rfiles-celery-beat
- Fixed celery-beat crash (read_only fs) — added --schedule=/tmp/celerybeat-schedule
- Traefik routing: rfiles.online, www.rfiles.online, *.rfiles.online
- DNS live, site responding 200
<!-- SECTION:NOTES:END -->