From 4c7347d653b00f18a6023c144dd655f78d426e3e Mon Sep 17 00:00:00 2001
From: Mert <101130780+mertalev@users.noreply.github.com>
Date: Mon, 27 May 2024 17:04:07 -0400
Subject: [PATCH] fix: re-add extends section for server in Compose files
 (#9806)

re-add extends section
---
 docker/docker-compose.dev.yml  | 3 +++
 docker/docker-compose.prod.yml | 3 +++
 docker/docker-compose.yml      | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml
index 29cea1a873..1375ad7667 100644
--- a/docker/docker-compose.dev.yml
+++ b/docker/docker-compose.dev.yml
@@ -9,6 +9,9 @@ services:
     container_name: immich_server
     command: ['/usr/src/app/bin/immich-dev']
     image: immich-server-dev:latest
+    # extends:
+    #   file: hwaccel.transcoding.yml
+    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
     build:
       context: ../
       dockerfile: server/Dockerfile
diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml
index 6168ea66dd..c19509eb26 100644
--- a/docker/docker-compose.prod.yml
+++ b/docker/docker-compose.prod.yml
@@ -4,6 +4,9 @@ services:
   immich-server:
     container_name: immich_server
     image: immich-server:latest
+    # extends:
+    #   file: hwaccel.transcoding.yml
+    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
     build:
       context: ../
       dockerfile: server/Dockerfile
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 2669db5080..62833d323c 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -12,6 +12,9 @@ services:
   immich-server:
     container_name: immich_server
     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
+    # extends:
+    #   file: hwaccel.transcoding.yml
+    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
     volumes:
       - ${UPLOAD_LOCATION}:/usr/src/app/upload
       - /etc/localtime:/etc/localtime:ro