diff --git a/Dockerfile b/Dockerfile index 5d495ff..4bca447 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,6 @@ RUN chown -R node:node /app USER node +HEALTHCHECK --interval=30s --start-period=10s --timeout=5s CMD node /app/healthcheck.js || exit 1 + CMD ["pm2-runtime", "dist/index.js" ] diff --git a/app/package.json b/app/package.json index bba7b18..3edb34a 100644 --- a/app/package.json +++ b/app/package.json @@ -4,7 +4,7 @@ "scripts": { "dev": "ts-node src/index.ts", "build": "npx tsc", - "test": "podman build -t immich-proxy-test .. && podman run --init -it -p=3000:3000 --env-file .env immich-proxy-test", + "test": "podman build --format docker -t immich-proxy-test .. && podman run --init -it -p=3000:3000 --env-file .env immich-proxy-test", "start": "node dist/index.js" }, "author": "Alan Grainger", diff --git a/docker-compose.yml b/docker-compose.yml index 893ae63..4bb35f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,3 @@ services: ports: - ${PORT}:3000 env_file: .env - healthcheck: - test: node /app/healthcheck.js - interval: 30s - start_period: 10s