Compose and supporting code for four services that had been running or prototyped without their config tracked here, per the repo convention that agap_git holds the compose + config while application source lives in each service's own Gitea repo. Only placeholder credentials are included: mood/.env.example and moodtracker/.env.example ship dummy values, and overleaf/variables.env carries app name and feature flags only. Real values stay in Vaultwarden. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
14 lines
385 B
Docker
14 lines
385 B
Docker
# Stdlib only (sqlite3 + argparse + csv) — no pip install needed.
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
COPY schema.sql ./schema.sql
|
|
COPY src ./src
|
|
|
|
ENV MOOD_DB_PATH=/data/mood_archive.sqlite \
|
|
MOOD_SOURCE_DB_PATH=/source/moodtracker/mood.db \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
# Long-lived service: cli.py `sync` loops on MOOD_SYNC_INTERVAL_SECONDS.
|
|
CMD ["python", "-m", "src.cli", "sync"]
|