From 64cd1ab635e057bc64ff1f14f365c14068547929 Mon Sep 17 00:00:00 2001
From: "niklastasler@gmail.com" <niklastasler@gmail.com>
Date: Wed, 30 Oct 2024 19:20:47 +0100
Subject: [PATCH] refactor: docker-compose file to use registry image

---
 docker-compose.yml | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/docker-compose.yml b/docker-compose.yml
index cebae78..96a9eb3 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,19 +1,13 @@
-version: "3"
-
 services:
-  public-proxy:
-    image: "node:22"
+  immich-public-proxy:
+    image: ghcr.io/alangrainger/immich-public-proxy:latest
     container_name: immich-public-proxy
-    working_dir: /home/node/app
-    environment:
-      - NODE_ENV=production
-    volumes:
-      - ./:/home/node/app:Z
+    restart: unless-stopped
     ports:
       - ${PORT}:3000
-    command: bash -c "cd /home/node/app && npm install && npm start"
-    restart: always
-    healthcheck:
-      test: (ps ax | grep -q "[n]ode dist/index.js" && echo "Ok") || exit 1
-      interval: 60s
-      start_period: 10s
+    environment:
+      - NODE_ENV=production
+    env_file:
+      - .env
+
+