Die Container werden nach einem Tag beendet, daher wurde hier eine Restart-Anweisung aufgenommen, damit sie danach wieder gestartet werden. |
||
|---|---|---|
| webhooks-git | ||
| .env | ||
| Dockerfile | ||
| README.md | ||
| docker-compose.yml | ||
| webhook-git-2.Dockerfile | ||
| webhook-git.Dockerfile | ||
README.md
Docker Nginx Git
This is a container to serve static pages from two git repositories. One repository holds the static sites, the other holds an assets-folder.
From the static sites repository all branches are initially loaded to $HTML_FOLDER/branches/<branchname>, the assets folder is initially loaded to $HTML_FOLDER/assets.
On a push to some branch on the static sites repository, this branches folder is deleted and cloned again. The assets folder is only updated if the push happened on the main branch.