1 Commits

Author SHA1 Message Date
Renovate Bot
cb649da5c2 Update php Docker tag to v8.4 2025-01-16 20:13:07 +00:00
8 changed files with 8 additions and 33 deletions

View File

@@ -1,6 +1,5 @@
include:
- gitea/docker-compose.yml
- homeassistant/docker-compose.yml
- immich/docker-compose.yml
- jellyfin/docker-compose.yml
- paperless/docker-compose.yml

View File

@@ -1 +0,0 @@
HOMEASSISTANT_CONFIG_DIR=

View File

@@ -1,13 +0,0 @@
services:
homeassistant:
container_name: homeassistant
image: ghcr.io/home-assistant/home-assistant:2025.1.2
volumes:
- ${HOMEASSISTANT_CONFIG_DIR}:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
ports:
- "8123:8123"
restart: unless-stopped
privileged: true
network_mode: host

View File

@@ -16,7 +16,7 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
paperless:
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.4
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.0
restart: unless-stopped
depends_on:
- db

View File

@@ -1,5 +1,4 @@
GITEA_WEBHOOK_SECRET=
DOCKER_CONFIG_DIR=
DOCKER_CONFIG_DIR_UID=
DOCKER_CONFIG_DIR_GID=
DOCKER_GID=
DOCKER_CONFIG_UID=
DOCKER_CONFIG_GID=

View File

@@ -19,10 +19,6 @@ RUN apt-get update && \
apt-get install -y git docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && \
rm -rf /var/lib/apt/lists/*
# 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
@@ -30,4 +26,4 @@ COPY webhook.php /var/www/html/index.php
EXPOSE 80
# Start Apache server
CMD ["apache2-foreground"]
CMD ["apache2-foreground"]

View File

@@ -1,13 +1,11 @@
services:
updater:
build: .
profiles: [noautoupdate]
user: ${DOCKER_CONFIG_DIR_UID}:${DOCKER_GID}
restart: always
user: ${DOCKER_CONFIG_UID}:${DOCKER_CONFIG_GID}
ports:
- "6969:80"
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_CONFIG_DIR}:${DOCKER_CONFIG_DIR}
- ${DOCKER_CONFIG_DIR}:${DOCKER_CONFIG_DIR}

View File

@@ -63,14 +63,11 @@ if (json_last_error() !== JSON_ERROR_NONE) {
exit();
}
error_log('SUCCESS');
// success, log something without error_log
error_log('SUCCESS - ' . $decoded['ref']);
chdir($docker_config_dir);
error_log('Pulling latest changes');
exec('git pull');
error_log('Building and starting containers');
exec('docker compose up -d --build --quiet-pull');
// send return code and text message