Skip to content

Commit

Permalink
Merge pull request #60 from aymene69/dev
Browse files Browse the repository at this point in the history
Added PM2 support, and faster results
  • Loading branch information
aymene69 authored Jan 31, 2024
2 parents 70d9201 + 4af43cf commit c12155b
Show file tree
Hide file tree
Showing 7 changed files with 1,670 additions and 125 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ ENV NODE_ENV production

COPY package*.json ./

RUN npm install tsx -g
RUN npm install pm2 -g

COPY . .

COPY .env.example .env

EXPOSE 3000

CMD ["npm", "start"]
CMD ["pm2", "start", "--no-daemon", "ecosystem.config.cjs"]
15 changes: 15 additions & 0 deletions ecosystem.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
apps: [
{
name: "stremio-jackett",
script: "npm start",
cwd: "/app",
watch: true,
autorestart: true,
env: {
NODE_ENV: "production",
PORT: 3000,
},
},
],
};
Loading

0 comments on commit c12155b

Please sign in to comment.