Actually truly really NOW actually for real really truly now actually for real genuinely really fix docker compose in updater

This commit is contained in:
Peter Smit
2025-01-17 15:19:25 +01:00
parent d15b6a176b
commit fca17a3dd7
10 changed files with 23 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ services:
gitea: gitea:
container_name: gitea container_name: gitea
image: gitea/gitea:1.23.1-rootless image: gitea/gitea:1.23.1-rootless
profiles: [autoupdate]
restart: always restart: always
volumes: volumes:
- ${GITEA_DATA_LOCATION}:/var/lib/gitea - ${GITEA_DATA_LOCATION}:/var/lib/gitea
@@ -15,6 +16,7 @@ services:
- "2222:2222" - "2222:2222"
gitea-runner: gitea-runner:
image: gitea/act_runner:0.2.11 image: gitea/act_runner:0.2.11
profiles: [autoupdate]
environment: environment:
CONFIG_FILE: /config.yaml CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "${GITEA_INSTANCE_URL}" GITEA_INSTANCE_URL: "${GITEA_INSTANCE_URL}"

View File

@@ -2,6 +2,7 @@ services:
immich-server: immich-server:
container_name: immich_server container_name: immich_server
image: ghcr.io/immich-app/immich-server:v1.124.2 image: ghcr.io/immich-app/immich-server:v1.124.2
profiles: [autoupdate]
# extends: # extends:
# file: hwaccel.transcoding.yml # file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
@@ -25,6 +26,7 @@ services:
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda # Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:v1.124.2 image: ghcr.io/immich-app/immich-machine-learning:v1.124.2
profiles: [autoupdate]
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml # file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
@@ -39,6 +41,7 @@ services:
redis: redis:
container_name: immich_redis container_name: immich_redis
image: docker.io/redis:7.4-alpine@sha256:1bf97f21f01b0e7bd4b7b34a26d3b9d8086e41e70c10f262e8a9e0b49b5116a0 image: docker.io/redis:7.4-alpine@sha256:1bf97f21f01b0e7bd4b7b34a26d3b9d8086e41e70c10f262e8a9e0b49b5116a0
profiles: [autoupdate]
healthcheck: healthcheck:
test: redis-cli ping || exit 1 test: redis-cli ping || exit 1
restart: always restart: always
@@ -46,6 +49,7 @@ services:
database: database:
container_name: immich_postgres container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
profiles: [autoupdate]
environment: environment:
POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME} POSTGRES_USER: ${DB_USERNAME}

View File

@@ -1,6 +1,7 @@
services: services:
jellyfin: jellyfin:
image: jellyfin/jellyfin:10.10.3 image: jellyfin/jellyfin:10.10.3
profiles: [autoupdate]
user: ${JELLYFIN_USER_UID}:${JELLYFIN_USER_GID} user: ${JELLYFIN_USER_UID}:${JELLYFIN_USER_GID}
network_mode: 'host' network_mode: 'host'
restart: 'unless-stopped' restart: 'unless-stopped'

View File

@@ -1,12 +1,14 @@
services: services:
broker: broker:
image: docker.io/library/redis:7 image: docker.io/library/redis:7
profiles: [autoupdate]
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${PAPERLESS_REDIS_DATA_DIR}:/data - ${PAPERLESS_REDIS_DATA_DIR}:/data
db: db:
image: docker.io/library/postgres:17 image: docker.io/library/postgres:17
profiles: [autoupdate]
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${PAPERLESS_POSTGRES_DATA_DIR}:/var/lib/postgresql/data - ${PAPERLESS_POSTGRES_DATA_DIR}:/var/lib/postgresql/data
@@ -17,6 +19,7 @@ services:
paperless: paperless:
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.3 image: ghcr.io/paperless-ngx/paperless-ngx:2.14.3
profiles: [autoupdate]
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db - db
@@ -48,6 +51,7 @@ services:
gotenberg: gotenberg:
image: docker.io/gotenberg/gotenberg:8.15.3 image: docker.io/gotenberg/gotenberg:8.15.3
profiles: [autoupdate]
restart: unless-stopped restart: unless-stopped
# The gotenberg chromium route is used to convert .eml files. We do not # The gotenberg chromium route is used to convert .eml files. We do not
@@ -59,4 +63,5 @@ services:
tika: tika:
image: docker.io/apache/tika:3.0.0.0 image: docker.io/apache/tika:3.0.0.0
profiles: [autoupdate]
restart: unless-stopped restart: unless-stopped

View File

@@ -1,6 +1,7 @@
services: services:
pingvin: pingvin:
image: stonith404/pingvin-share:v1.8.1 image: stonith404/pingvin-share:v1.8.1
profiles: [autoupdate]
restart: unless-stopped restart: unless-stopped
ports: ports:
- 3042:3000 - 3042:3000

View File

@@ -1,6 +1,7 @@
services: services:
pocket-id: pocket-id:
image: stonith404/pocket-id:v0.24.1 image: stonith404/pocket-id:v0.24.1
profiles: [autoupdate]
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
ports: ports:

View File

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

View File

@@ -2,6 +2,7 @@ services:
vaultwarden: vaultwarden:
container_name: vaultwarden container_name: vaultwarden
image: vaultwarden/server:1.32.7 image: vaultwarden/server:1.32.7
profiles: [autoupdate]
restart: always restart: always
volumes: volumes:
- ${VAULTWARDEN_DATA_LOCATION}:/data/ - ${VAULTWARDEN_DATA_LOCATION}:/data/