Actually truly really NOW actually for real truly now fix docker compose in updater

This commit is contained in:
Peter Smit
2025-01-17 14:31:15 +01:00
parent edd9116787
commit 2fa4dafc4d
3 changed files with 9 additions and 2 deletions

View File

@@ -1,2 +1,5 @@
GITEA_WEBHOOK_SECRET= GITEA_WEBHOOK_SECRET=
DOCKER_CONFIG_DIR= DOCKER_CONFIG_DIR=
DOCKER_CONFIG_DIR_UID=
DOCKER_CONFIG_DIR_GID=
DOCKER_GID=

View File

@@ -20,7 +20,11 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Add user to the docker group # Add user to the docker group
RUN usermod -aG docker www-data RUN usermod -aG $DOCKER_GID www-data
# Create .docker directory and set permissions
RUN mkdir -p /var/www/.docker && \
chown www-data:www-data /var/www/.docker
# Copy the PHP file to the Apache document root # Copy the PHP file to the Apache document root
COPY webhook.php /var/www/html/index.php COPY webhook.php /var/www/html/index.php

View File

@@ -1,7 +1,7 @@
services: services:
updater: updater:
build: . build: .
user: root user: ${DOCKER_CONFIG_DIR_UID}:${DOCKER_CONFIG_DIR_GID}
ports: ports:
- "6969:80" - "6969:80"
env_file: env_file: