Updates galore. Improved folder structure, componentized, and notifications upon completion.
This commit is contained in:
parent
b48784e2ad
commit
7e0502ca40
33 changed files with 3565 additions and 728 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -52,7 +52,8 @@ RUN groupadd --gid 1000 appuser \
|
|||
|
||||
# ── Application code ─────────────────────────────────────────────────────────
|
||||
WORKDIR /app
|
||||
COPY app.py wsgi.py gunicorn.conf.py requirements.txt ./
|
||||
COPY app/ app/
|
||||
COPY wsgi.py run.py gunicorn.conf.py requirements.txt ./
|
||||
COPY templates/ templates/
|
||||
COPY static/ static/
|
||||
|
||||
|
|
@ -61,6 +62,10 @@ COPY static/ static/
|
|||
# All file-system access by the application is restricted to this path.
|
||||
RUN mkdir -p /media && chown appuser:appuser /media
|
||||
|
||||
# ── Data directory for the SQLite settings database ──────────────────────────
|
||||
# Mounted as a named volume in docker-compose so settings survive restarts.
|
||||
RUN mkdir -p /data && chown appuser:appuser /data
|
||||
|
||||
# ── File ownership ────────────────────────────────────────────────────────────
|
||||
RUN chown -R appuser:appuser /app
|
||||
|
||||
|
|
@ -73,6 +78,7 @@ USER appuser
|
|||
# PORT — TCP port Gunicorn listens on (exposed below).
|
||||
# LOG_LEVEL — Gunicorn log verbosity (debug | info | warning | error).
|
||||
ENV MEDIA_ROOT=/media \
|
||||
DB_PATH=/data/videopress.db \
|
||||
PORT=8080 \
|
||||
LOG_LEVEL=info \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
|
|
@ -89,4 +95,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
|
|||
|| exit 1
|
||||
|
||||
# ── Start Gunicorn ────────────────────────────────────────────────────────────
|
||||
CMD ["gunicorn", "-c", "gunicorn.conf.py", "wsgi:app"]
|
||||
CMD ["gunicorn", "-c", "gunicorn.conf.py", "wsgi:application"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue