From dfbfaba24ab1188bb40b4f6030e68c26ca22301d Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Mon, 28 Oct 2024 09:14:39 +0100 Subject: [PATCH] Add docker-compose --- docker-compose.yml | 17 +++++++++++++++++ package.json | 5 +++-- immich.js => src/immich.js | 0 index.js => src/index.js | 0 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yml rename immich.js => src/immich.js (100%) rename index.js => src/index.js (100%) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1c5716c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: "3" + +services: + public-proxy: + image: "node:22" + container_name: immich-public-proxy + working_dir: /home/node/app + environment: + - NODE_ENV=production + volumes: + - ./:/home/node/app:Z + ports: + - ${PORT}:3000 + command: "npm start" + restart: always + healthcheck: + disable: true diff --git a/package.json b/package.json index 1b8b484..70fdd02 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "immich-public-proxy", "version": "1.0.0", - "main": "index.js", + "main": "src/index.js", "scripts": { - "dev": "node index.js" + "dev": "node src/index.js", + "start": "node src/index.js" }, "author": "", "license": "ISC", diff --git a/immich.js b/src/immich.js similarity index 100% rename from immich.js rename to src/immich.js diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js