refactor: docker-compose file to use registry image

This commit is contained in:
niklastasler@gmail.com 2024-10-30 19:20:47 +01:00
parent 43e359a66e
commit 64cd1ab635

View File

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