Datenbank von SQLite auf Postgres umgestellt
Verbindung über KVER_DSN; Tabelle user heißt jetzt account (reserviertes Wort in Postgres). kver import-sqlite übernimmt die alte Datei einmalig in einer Transaktion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c6ab082f8c
commit
2714fdb1a5
+4
-3
@@ -1,4 +1,5 @@
|
||||
# Build-Stage: statisches Binary, CGO aus (modernc.org/sqlite ist pures Go).
|
||||
# Build-Stage: statisches Binary, CGO aus (pgx und modernc.org/sqlite für den
|
||||
# einmaligen Import sind pures Go).
|
||||
FROM docker.io/library/golang:1.26-alpine AS build
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
@@ -13,10 +14,10 @@ WORKDIR /app
|
||||
COPY --from=build /kver /usr/local/bin/kver
|
||||
COPY web/ web/
|
||||
COPY static/ static/
|
||||
# data: SQLite-DB; static/media: Uploads. Beide als Volume persistieren.
|
||||
# data: GeoLite2-ASN-DB (und die alte SQLite-DB für den Import);
|
||||
# static/media: Uploads. Beide als Volume persistieren.
|
||||
RUN mkdir -p data static/media && chown kver:kver data static/media
|
||||
USER kver
|
||||
ENV KVER_DB=/app/data/kver.db
|
||||
ENV KVER_ADDR=:8080
|
||||
EXPOSE 8080
|
||||
VOLUME ["/app/data", "/app/static/media"]
|
||||
|
||||
Reference in New Issue
Block a user