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