Actually truly really NOW actually for real truly now fix docker compose in updater
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
GITEA_WEBHOOK_SECRET=
|
||||
DOCKER_CONFIG_DIR=
|
||||
DOCKER_CONFIG_DIR_UID=
|
||||
DOCKER_CONFIG_DIR_GID=
|
||||
DOCKER_GID=
|
||||
|
||||
@@ -20,7 +20,11 @@ RUN apt-get update && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 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 webhook.php /var/www/html/index.php
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
updater:
|
||||
build: .
|
||||
user: root
|
||||
user: ${DOCKER_CONFIG_DIR_UID}:${DOCKER_CONFIG_DIR_GID}
|
||||
ports:
|
||||
- "6969:80"
|
||||
env_file:
|
||||
|
||||
Reference in New Issue
Block a user