Added folder variables.
This commit is contained in:
parent
8a98ee5f09
commit
a5c5200549
4
.env
4
.env
@ -1,4 +1,6 @@
|
|||||||
REPO_URL=https://git.cyberstrawberry.net/container-registry/git-repo-updater
|
REPO_URL=https://git.cyberstrawberry.net/cyberstrawberry/placeholder.git
|
||||||
NTFY_URL=https://ntfy.cyberstrawberry.net/git-repo-updater
|
NTFY_URL=https://ntfy.cyberstrawberry.net/git-repo-updater
|
||||||
|
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
|
@ -2,7 +2,7 @@ version: '3.3'
|
|||||||
services:
|
services:
|
||||||
git-repo-updater:
|
git-repo-updater:
|
||||||
privileged: true
|
privileged: true
|
||||||
container_name: watchdog
|
container_name: git-repo-updater
|
||||||
environment:
|
environment:
|
||||||
- REPO_URL=${REPO_URL}
|
- REPO_URL=${REPO_URL}
|
||||||
- COPY_DIR=${COPY_DIR}
|
- COPY_DIR=${COPY_DIR}
|
||||||
@ -12,5 +12,8 @@ services:
|
|||||||
- TZ=America/Denver
|
- TZ=America/Denver
|
||||||
image: git.cyberstrawberry.net/container-registry/git-repo-updater:latest
|
image: git.cyberstrawberry.net/container-registry/git-repo-updater:latest
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/containers/git-repo-updater:/DATA
|
#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
|
||||||
restart: always
|
restart: always
|
Loading…
x
Reference in New Issue
Block a user