From 23417aeefd6ecf712420c3211874e7aa032968c1 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 21 Sep 2023 23:43:37 -0600 Subject: [PATCH] Updated Compose and added variables. --- .env | 5 +++++ docker-compose.yml | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..98c90da --- /dev/null +++ b/.env @@ -0,0 +1,5 @@ +REPO_URL=https://git.cyberstrawberry.net/container-registry/git-repo-updater +COPY_DIR=/server +NTFY_URL=https://ntfy.cyberstrawberry.net/git-repo-updater +GIT_USERNAME=nicole.rappe +GIT_PASSWORD=REDACTED \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 120aafb..70cc96a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,13 +3,13 @@ services: git-repo-updater: privileged: true environment: - - 'REPO_URL=https://git.cyberstrawberry.net/container-registry/git-repo-updater' - - COPY_DIR=/server - - 'NTFY_URL=https://ntfy.cyberstrawberry.net/git-repo-updater' - - GIT_USERNAME=nicole.rappe - - GIT_PASSWORD=REDACTED + - REPO_URL=${REPO_URL} + - COPY_DIR=${COPY_DIR} + - NTFY_URL=${NTFY_URL} + - GIT_USERNAME=${GIT_USERNAME} + - GIT_PASSWORD=${GIT_PASSWORD} - TZ=America/Denver - image: git-repo-updater + image: git.cyberstrawberry.net/container-registry/git-repo-updater:latest volumes: - - /srv/containers/git-repo-updater/traefik:/server + - /srv/containers/git-repo-updater:/server restart: always \ No newline at end of file