deployment improvments
This commit is contained in:
83
README.md
83
README.md
@@ -1,43 +1,56 @@
|
||||
<img src="http://getkirby.com/assets/images/github/starterkit.jpg" width="300">
|
||||
# Lichterei Web – Kirby Projekt
|
||||
|
||||
**Kirby: the CMS that adapts to any project, loved by developers and editors alike.**
|
||||
The Starterkit is a full-blown Kirby installation with a lot of example content, blueprints, templates and more.
|
||||
It is ideal for new users to explore many of Kirby's options and get to know the Panel.
|
||||
Dieses Repository bündelt die Kirby-Installation sowie die Docker-Infrastruktur, damit du das Projekt lokal ausprobieren und im Server-Setup mit Traefik deployen kannst.
|
||||
|
||||
You can learn more about Kirby at [getkirby.com](https://getkirby.com).
|
||||
## Voraussetzungen
|
||||
- Docker Engine ≥ 20.10 und `docker compose`
|
||||
- Optional: Composer, falls du Abhängigkeiten aktualisieren möchtest
|
||||
- Passe vor dem ersten Start den Wert `USERID` in `id.env` an deinen lokalen Benutzer an – so vermeidest du Rechteprobleme beim Schreiben ins gemountete Volume.
|
||||
|
||||
<img src="http://getkirby.com/assets/images/github/starterkit-screen.png" />
|
||||
## Lokale Ausführung
|
||||
1. `USERID` in `id.env` prüfen/anpassen (`id -u` liefert deinen Wert).
|
||||
2. Container starten:
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
3. Die Seite ist anschließend unter http://localhost:8080 erreichbar, das Kirby Panel unter http://localhost:8080/panel.
|
||||
|
||||
### Try Kirby for free
|
||||
Mit `docker compose down` stoppst du die Umgebung wieder. Inhalte bleiben erhalten, da der Projektordner als Volume eingebunden ist.
|
||||
|
||||
You can try Kirby and the Starterkit on your local machine or on a test server as long as you need to make sure it is the right tool for your next project. … and when you’re convinced, [buy your license](https://getkirby.com/buy).
|
||||
## Deployment mit Traefik
|
||||
1. Domain, Router- und Zertifikatsnamen in `docker-compose.traefik.yml` anpassen.
|
||||
2. Sicherstellen, dass das externe Netzwerk `proxy` existiert (`docker network create proxy`).
|
||||
3. Deployment starten:
|
||||
```bash
|
||||
docker compose \
|
||||
-f docker-compose.yml \
|
||||
-f docker-compose.traefik.yml \
|
||||
up -d
|
||||
```
|
||||
Passe bei Bedarf den Volume-Eintrag in `docker-compose.yml` an (z. B. benanntes Volume oder separater Persistenzpfad).
|
||||
4. Für den Registry-Workflow steht `scripts/publish-image.sh` bereit. Das Skript baut das Image aus dem aktuellen Stand und pusht es zum konfigurierten Registry-Host.
|
||||
|
||||
The Starterkit is a demo of basic Kirby features. It's not recommended to be used "as is" in production. Please, follow our documentation closely for more features and guides on how to build secure, high-quality websites with Kirby.
|
||||
## Nutzung eines Registry-Images
|
||||
- Setze vor dem Start die Umgebungsvariable `KIRBY_IMAGE` auf das exakte Image samt Tag oder Digest, z. B.:
|
||||
```bash
|
||||
export KIRBY_IMAGE=gitea.mindboost.team/interkollektives/lichterei-web:0.0.1
|
||||
```
|
||||
Mit `docker image ls gitea.mindboost.team/interkollektives/lichterei-web` siehst du, welche Tags lokal vorhanden sind. Fehlt der gewünschte Tag, kannst du ihn vergeben: `docker tag <IMAGE_ID> gitea.mindboost.team/...:<tag>`.
|
||||
- Container aus Registry starten:
|
||||
```bash
|
||||
docker compose -f docker-compose.registry.yml up -d
|
||||
```
|
||||
`--build` wird hier nicht benötigt, da keine lokale Build-Definition verwendet wird.
|
||||
- Falls du das Image aktualisierst, entferne das benannte Volume vorher (`docker compose down -v`), damit die neuen Dateien aus dem Image erneut in `/var/www/html` kopiert werden.
|
||||
- Kombination mit Traefik ist ebenfalls möglich:
|
||||
```bash
|
||||
docker compose -f docker-compose.registry.yml -f docker-compose.traefik.yml up -d
|
||||
```
|
||||
|
||||
While Kirby as the CMS software itself requires you to purchase a license, we consider the files primarily connected to this Starterkit (assets, templates, snippets...) free to use under the MIT license. Feel free to start building your own project with them.
|
||||
## Contribution Guidelines
|
||||
- Forken oder Branch erstellen, bevor du Änderungen beginnst.
|
||||
- Lokal mit `docker compose up` arbeiten oder – falls du ohne Container entwickeln willst – `composer install` ausführen.
|
||||
- Bitte prüfe, ob deine Änderungen im Frontend sichtbar funktionieren und keine PHP-Fehler im Log landen.
|
||||
- Pull Request eröffnen und kurz beschreiben, was angepasst wurde und wie getestet wurde.
|
||||
|
||||
### Get going
|
||||
|
||||
Read our guide on [how to get started with Kirby](https://getkirby.com/docs/guide/quickstart).
|
||||
|
||||
You can download the latest version of the Starterkit from https://download.getkirby.com/.
|
||||
If you are familiar with Git, you can clone Kirby's Starterkit repository from Github.
|
||||
|
||||
git clone https://github.com/getkirby/starterkit.git
|
||||
|
||||
## What's Kirby?
|
||||
|
||||
- **[getkirby.com](https://getkirby.com)** – Get to know the CMS.
|
||||
- **[Try it](https://getkirby.com/try)** – Take a test ride with our online demo. Or download one of our kits to get started.
|
||||
- **[Documentation](https://getkirby.com/docs/guide)** – Read the official guide, reference and cookbook recipes.
|
||||
- **[Issues](https://github.com/getkirby/kirby/issues)** – Report bugs and other problems.
|
||||
- **[Feedback](https://feedback.getkirby.com)** – You have an idea for Kirby? Share it.
|
||||
- **[Forum](https://forum.getkirby.com)** – Whenever you get stuck, don't hesitate to reach out for questions and support.
|
||||
- **[Discord](https://chat.getkirby.com)** – Hang out and meet the community.
|
||||
- **[YouTube](https://youtube.com/kirbyCasts)** - Watch the latest video tutorials visually with Bastian.
|
||||
- **[Mastodon](https://mastodon.social/@getkirby)** – Spread the word.
|
||||
- **[Bluesky](https://bsky.app/profile/getkirby.com)** – Tell a friend.
|
||||
---
|
||||
|
||||
© 2009 Bastian Allgeier
|
||||
[getkirby.com](https://getkirby.com) · [License agreement](https://getkirby.com/license)
|
||||
Vielen Dank fürs Mitmachen! Bei Fragen melde dich einfach per Issue oder direkt im Team-Chat.
|
||||
|
||||
Reference in New Issue
Block a user