Add deployment docs, switch compose to pull from registry
- docs/deployment.md: manual build/push/pull workflow via Gitea registry, token handling (no secrets in repo), test vs. production compose variants, rollback and later CI automation notes. - compose.yaml: pull the prebuilt image from the Gitea registry instead of building from source on Unraid (source is not checked out there). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
95946a4349
commit
ee90877dea
2 files changed
+154
-8
No files matched your search
+8
-8
@@ -1,20 +1,20 @@
|
||||
# TEST-Setup fuer den ersten Lauf auf Unraid (ohne NPM, ohne Registry).
|
||||
# TEST-Setup fuer den ersten Lauf auf Unraid (ohne NPM).
|
||||
#
|
||||
# Zieht das fertige Image aus der Gitea-Registry (Build passiert auf dem
|
||||
# Entwicklungsrechner, siehe docs/deployment.md), statt auf Unraid aus dem
|
||||
# Quellcode zu bauen.
|
||||
#
|
||||
# Weicht bewusst vom Produktiv-Setup in plan.md Abschnitt 8 ab:
|
||||
# - Das Image wird hier direkt aus dem Quellcode gebaut (build:), statt aus
|
||||
# der Gitea-Registry gezogen. Spart Registry + Token fuer den ersten Test.
|
||||
# - Es gibt ein Port-Mapping (5000 aussen -> 8080 innen), damit die App im
|
||||
# lokalen Netz unter http://<unraid>:5000 erreichbar ist. Im Produktiv-
|
||||
# betrieb entfaellt das Mapping; dort ist nur NPM der Weg zum Container.
|
||||
# betrieb entfaellt das Mapping; dort ist nur NPM der Weg zum Container
|
||||
# (dann stattdessen das externe npm-Netz, siehe docs/deployment.md).
|
||||
#
|
||||
# Sobald NPM steht, wird diese Datei durch das Produktiv-compose ersetzt.
|
||||
|
||||
services:
|
||||
eb-web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: elternbeirat-web:test
|
||||
image: gitea.anticarnist.de/tom/elternbeirat:latest
|
||||
container_name: eb-web
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
|
||||
Reference in new issue
Block a user