Compare commits
1 Commits
dbc111ac5b
...
cb649da5c2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb649da5c2 |
@@ -1,6 +1,5 @@
|
|||||||
include:
|
include:
|
||||||
- gitea/docker-compose.yml
|
- gitea/docker-compose.yml
|
||||||
- homeassistant/docker-compose.yml
|
|
||||||
- immich/docker-compose.yml
|
- immich/docker-compose.yml
|
||||||
- jellyfin/docker-compose.yml
|
- jellyfin/docker-compose.yml
|
||||||
- paperless/docker-compose.yml
|
- paperless/docker-compose.yml
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
HOMEASSISTANT_CONFIG_DIR=
|
|
||||||
@@ -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
|
|
||||||
@@ -16,7 +16,7 @@ services:
|
|||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
|
||||||
paperless:
|
paperless:
|
||||||
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.4
|
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
GITEA_WEBHOOK_SECRET=
|
GITEA_WEBHOOK_SECRET=
|
||||||
DOCKER_CONFIG_DIR=
|
DOCKER_CONFIG_DIR=
|
||||||
DOCKER_CONFIG_DIR_UID=
|
DOCKER_CONFIG_UID=
|
||||||
DOCKER_CONFIG_DIR_GID=
|
DOCKER_CONFIG_GID=
|
||||||
DOCKER_GID=
|
|
||||||
@@ -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 && \
|
apt-get install -y git docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
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 the PHP file to the Apache document root
|
||||||
COPY webhook.php /var/www/html/index.php
|
COPY webhook.php /var/www/html/index.php
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
updater:
|
updater:
|
||||||
build: .
|
build: .
|
||||||
profiles: [noautoupdate]
|
user: ${DOCKER_CONFIG_UID}:${DOCKER_CONFIG_GID}
|
||||||
user: ${DOCKER_CONFIG_DIR_UID}:${DOCKER_GID}
|
|
||||||
restart: always
|
|
||||||
ports:
|
ports:
|
||||||
- "6969:80"
|
- "6969:80"
|
||||||
env_file:
|
env_file:
|
||||||
|
|||||||
@@ -63,14 +63,11 @@ if (json_last_error() !== JSON_ERROR_NONE) {
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
error_log('SUCCESS');
|
// success, log something without error_log
|
||||||
|
error_log('SUCCESS - ' . $decoded['ref']);
|
||||||
|
|
||||||
chdir($docker_config_dir);
|
chdir($docker_config_dir);
|
||||||
|
|
||||||
error_log('Pulling latest changes');
|
|
||||||
exec('git pull');
|
exec('git pull');
|
||||||
|
|
||||||
error_log('Building and starting containers');
|
|
||||||
exec('docker compose up -d --build --quiet-pull');
|
exec('docker compose up -d --build --quiet-pull');
|
||||||
|
|
||||||
// send return code and text message
|
// send return code and text message
|
||||||
|
|||||||
Reference in New Issue
Block a user