19 Commits

Author SHA1 Message Date
Renovate Bot
dbc111ac5b Update php Docker tag to v8.4 2025-01-19 18:25:07 +00:00
79f4e9ae17 Merge pull request 'Update ghcr.io/paperless-ngx/paperless-ngx Docker tag to v2.14.4' (#31) from renovate/ghcr.io-paperless-ngx-paperless-ngx-2.x into master
Reviewed-on: https://git.smittenfeld.nl/peter/homelab-docker-config/pulls/31
2025-01-19 07:03:57 +00:00
Renovate Bot
9ce329dfb9 Update ghcr.io/paperless-ngx/paperless-ngx Docker tag to v2.14.4 2025-01-19 06:13:01 +00:00
Peter Smit
200ef32a06 Add homeassistant 2025-01-18 17:02:36 +01:00
662a666b8b Update paperless/docker-compose.yml 2025-01-17 14:26:51 +00:00
072cdce71f Update paperless/docker-compose.yml 2025-01-17 14:24:47 +00:00
Peter Smit
52e6741c8b remove autoupdate profile 2025-01-17 15:23:18 +01:00
Peter Smit
3a47732d80 Actually truly really NOW actually for real really truly now actually for real genuinely really really fix docker compose in updater 2025-01-17 15:21:34 +01:00
Peter Smit
fca17a3dd7 Actually truly really NOW actually for real really truly now actually for real genuinely really fix docker compose in updater 2025-01-17 15:19:25 +01:00
Peter Smit
d15b6a176b Actually truly really NOW actually for real really truly now actually for real genuinely fix docker compose in updater 2025-01-17 15:11:30 +01:00
Peter Smit
f9990972b0 Actually truly really NOW actually for real really truly now actually for real fix docker compose in updater 2025-01-17 15:08:55 +01:00
Peter Smit
29e4fd55de Actually truly really NOW actually for real really truly now actually fix docker compose in updater 2025-01-17 15:00:10 +01:00
Peter Smit
4dd38f3ba0 Actually truly really NOW actually for real truly now actually fix docker compose in updater 2025-01-17 14:39:55 +01:00
Peter Smit
2fa4dafc4d Actually truly really NOW actually for real truly now fix docker compose in updater 2025-01-17 14:31:15 +01:00
Peter Smit
edd9116787 Actually really NOW actually for real truly now fix docker compose in updater 2025-01-17 10:27:10 +01:00
Peter Smit
7dcd7756af Actually really NOW actually for real truly fix docker compose in updater 2025-01-17 10:25:39 +01:00
Peter Smit
7c237e1f2b fuck it 2025-01-17 09:14:04 +01:00
e609e80eb8 Merge pull request 'Update ghcr.io/paperless-ngx/paperless-ngx Docker tag to v2.14.3' (#29) from renovate/ghcr.io-paperless-ngx-paperless-ngx-2.x into master
Reviewed-on: https://git.smittenfeld.nl/peter/homelab-docker-config/pulls/29
2025-01-16 20:13:37 +00:00
Renovate Bot
1517aeba64 Update ghcr.io/paperless-ngx/paperless-ngx Docker tag to v2.14.3 2025-01-16 20:13:01 +00:00
8 changed files with 34 additions and 9 deletions

View File

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

View File

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

View File

@@ -0,0 +1,13 @@
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.0
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.4
restart: unless-stopped
depends_on:
- db

View File

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

View File

@@ -1,5 +1,5 @@
# Use the official PHP image with Apache
FROM php:8.1-apache
FROM php:8.4-apache
# Add Docker's official GPG key:
RUN apt-get update &&\
@@ -19,6 +19,10 @@ 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
@@ -26,4 +30,4 @@ COPY webhook.php /var/www/html/index.php
EXPOSE 80
# Start Apache server
CMD ["apache2-foreground"]
CMD ["apache2-foreground"]

View File

@@ -1,11 +1,13 @@
services:
updater:
build: .
user: ${DOCKER_CONFIG_UID}:${DOCKER_CONFIG_GID}
profiles: [noautoupdate]
user: ${DOCKER_CONFIG_DIR_UID}:${DOCKER_GID}
restart: always
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,11 +63,14 @@ if (json_last_error() !== JSON_ERROR_NONE) {
exit();
}
// success, log something without error_log
error_log('SUCCESS - ' . $decoded['ref']);
error_log('SUCCESS');
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