--- /dev/null
+{
+ email certs@git.zue.dev
+}
+
+https://git.zue.dev {
+ reverse_proxy localhost:8080
+}
\ No newline at end of file
# enter the repo
cd "$GIT_ZUE_DEV" || { echo "Failed to change directory to $GIT_ZUE_DEV. PANIC!"; exit 1; }
+# replace Caddyfile if it has changed
+if ! cmp -s "$DOCKER_COMPOSE_DIRECTORY/Caddyfile" <(git show HEAD:"Caddyfile"); then
+ echo "Caddyfile has changed. Updating local copy..."
+ git show HEAD:"Caddyfile" > "$DOCKER_COMPOSE_DIRECTORY/Caddyfile"
+else
+ echo "Caddyfile has not changed. No action needed."
+fi
+
# array of files to check for changes
HTML_FILES_TO_CHECK=(
"site_header.html"
services:
+ caddy:
+ image: caddy:2.8.4-alpine
+ ports:
+ - 80:80
+ - 443:443
+ volumes:
+ - ./Caddyfile:/etc/caddy/Caddyfile:ro
+ - caddy_data:/data
+ - caddy_config:/config
gitweb:
build:
context: .
echo "\$$feature{'remote_heads'}{'default'} = [1];" >> /etc/gitweb.conf && \
nginx -g 'daemon off;'
ports:
- - 6300:80
+ - 8080:80
environment:
- PROJECTS_LIST=
volumes: