Compare commits
19 Commits
cb649da5c2
...
dbc111ac5b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbc111ac5b | ||
| 79f4e9ae17 | |||
|
|
9ce329dfb9 | ||
|
|
200ef32a06 | ||
| 662a666b8b | |||
| 072cdce71f | |||
|
|
52e6741c8b | ||
|
|
3a47732d80 | ||
|
|
fca17a3dd7 | ||
|
|
d15b6a176b | ||
|
|
f9990972b0 | ||
|
|
29e4fd55de | ||
|
|
4dd38f3ba0 | ||
|
|
2fa4dafc4d | ||
|
|
edd9116787 | ||
|
|
7dcd7756af | ||
|
|
7c237e1f2b | ||
| e609e80eb8 | |||
|
|
1517aeba64 |
@@ -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
|
||||
|
||||
1
homeassistant/.env.example
Normal file
1
homeassistant/.env.example
Normal file
@@ -0,0 +1 @@
|
||||
HOMEASSISTANT_CONFIG_DIR=
|
||||
13
homeassistant/docker-compose.yml
Normal file
13
homeassistant/docker-compose.yml
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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=
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user