diff --git a/.env.example b/.env.example index e6241f1..11bfcad 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ IMMICH_URL=http://localhost:2283 +PROXY_PUBLIC_URL=http://localhost:3000 PORT=3000 CACHE_AGE=2592000 diff --git a/docker-compose.yml b/docker-compose.yml index b9908ff..b249fb1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,3 +9,7 @@ services: - NODE_ENV=production env_file: - .env + healthcheck: + test: ([ "$(wget -qO- ${PROXY_PUBLIC_URL}/healthcheck)" = "ok" ] && exit 0) || exit 1 + interval: 120s + start_period: 5s