Add Space metadata model and provisional Forgejo content ADR

Introduce tenant-scoped Space/SpaceMembership with list and detail views.
Document markdown-in-Forgejo as content SoR (ADR-0002). Run migrations on
container start so app.coulomb.social picks up the new tables.
This commit is contained in:
tegwick 2026-08-12 01:30:05 +02:00
parent bb6bc6093a
commit be32432d39
22 changed files with 697 additions and 12 deletions

View file

@ -36,12 +36,14 @@ WORKDIR /app
COPY --from=deps /app/.venv /app/.venv
COPY manage.py pyproject.toml ./
COPY coulomb_social ./coulomb_social
COPY scripts/docker-entrypoint.sh /app/docker-entrypoint.sh
RUN chown -R appuser:appuser /app
RUN chmod +x /app/docker-entrypoint.sh \
&& chown -R appuser:appuser /app
USER appuser
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s \
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz')" || exit 1
CMD ["gunicorn", "coulomb_social.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2"]
ENTRYPOINT ["/app/docker-entrypoint.sh"]