Refactoring and cleanup with commentary
This commit is contained in:
parent
7417679777
commit
6667890e2f
12
.env
12
.env
@ -1,6 +1,10 @@
|
|||||||
REPO_URL=https://git.cyberstrawberry.net/cyberstrawberry/placeholder.git
|
# Repository to Pull
|
||||||
NTFY_URL=https://ntfy.cyberstrawberry.net/git-repo-updater
|
REPO_URL=https://git.cyberstrawberry.net/cyberstrawberry/website.git
|
||||||
TEMP_DIR=/srv/containers/git-repo-updater/REPO-NAME
|
|
||||||
DESTINATION=/srv/containers/server-name/data
|
|
||||||
GIT_USERNAME=nicole.rappe
|
GIT_USERNAME=nicole.rappe
|
||||||
GIT_PASSWORD=USE-AN-APP-PASSWORD
|
GIT_PASSWORD=USE-AN-APP-PASSWORD
|
||||||
|
|
||||||
|
# NTFY Server to Notify on Pull Events
|
||||||
|
NTFY_URL=https://ntfy.cyberstrawberry.net/git-repo-updater
|
||||||
|
|
||||||
|
# Folder of the destination server / container folder where you want the repository data to transfer
|
||||||
|
DESTINATION=/srv/containers/nginx-portfolio-website/www
|
@ -3,10 +3,13 @@ services:
|
|||||||
git-repo-updater:
|
git-repo-updater:
|
||||||
privileged: true
|
privileged: true
|
||||||
container_name: git-repo-updater
|
container_name: git-repo-updater
|
||||||
|
environment:
|
||||||
|
- REPO_URL=${REPO_URL}
|
||||||
|
- COPY_DIR=${COPY_DIR}
|
||||||
|
- NTFY_URL=${NTFY_URL}
|
||||||
|
- GIT_USERNAME=${GIT_USERNAME}
|
||||||
|
- GIT_PASSWORD=${GIT_PASSWORD}
|
||||||
image: git.cyberstrawberry.net/container-registry/git-repo-updater:latest
|
image: git.cyberstrawberry.net/container-registry/git-repo-updater:latest
|
||||||
volumes:
|
volumes:
|
||||||
#This folder is where the repository will be downloaded and updated - it needs a unique folder name.
|
|
||||||
- ${TEMP_DIR}:/root/Repo_Watcher/repo
|
|
||||||
#This is where you want the git repository data to be copied to (e.g. a server's data folder)
|
|
||||||
- ${DESTINATION}:/DATA
|
- ${DESTINATION}:/DATA
|
||||||
restart: always
|
restart: always
|
Loading…
x
Reference in New Issue
Block a user