diff --git a/docker-compose.yml b/docker-compose.yml index 31eab39..cd71eb6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,11 @@ services: oikos: -# image: ghcr.io/ulsklyc/oikos:latest + image: ghcr.io/ulsklyc/oikos:latest build: . # optional: use --build to build locally instead container_name: oikos restart: unless-stopped ports: - - "0.0.0.0:3100:3000" + - "0.0.0.0:3000:3000" volumes: - oikos_data:/data env_file: @@ -19,7 +19,7 @@ services: # Direct HTTP access (no reverse proxy): - SESSION_SECURE=false healthcheck: - test: ["CMD", "node", "-e", "require('http').get('http://localhost:3100/health', r => process.exit(r.statusCode === 200 ? 0 : 1))"] + test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', r => process.exit(r.statusCode === 200 ? 0 : 1))"] interval: 30s timeout: 10s retries: 3 diff --git a/public/pages/birthdays.js b/public/pages/birthdays.js index 8ec7284..7f20434 100644 --- a/public/pages/birthdays.js +++ b/public/pages/birthdays.js @@ -65,11 +65,12 @@ function renderSuggestions() { const items = suggestions(); if (!items.length) { dropdown.hidden = true; - dropdown.innerHTML = ''; + dropdown.replaceChildren(); return; } dropdown.hidden = false; - dropdown.innerHTML = items.map((birthday, idx) => ` + dropdown.replaceChildren(); + dropdown.insertAdjacentHTML('beforeend', items.map((birthday, idx) => ` - `).join(''); + `).join('')); } function renderUpcoming() { const host = _container.querySelector('#birthdays-upcoming'); if (!host) return; if (!state.upcoming.length) { - host.innerHTML = `