meilisearch-ui: Singleton mode always has connection failures
Describe the bug When I go to the UI in the browser I see my instance, it shows “running” and I can open an index. But basically every other action results in this screen:
When I press reload I land at the entry site again. Makes it kind of useless to me.
We run this locally to verify our services work correctly and indexes are correctly created (mainly monitoring Meili). Unfortunately the Readme lacks any information about how to set it up properly. We have a docker-compose.yaml file where I set the mentioned singleton environment variables. But seemingly this is not enough or the whole singleton mode is very buggy. There is unfortunately no other setup explained.
Ideally we want that the UI is already set up for our local development instance (not hosted anywhere), so every developer can just head to the defined URL and check it locally without need to add the instance manually.
To Reproduce
Steps to reproduce the behavior:
docker compose up using this configuration:
meiliSearch:
image: getmeili/meilisearch:latest
restart: unless-stopped
ports:
- 7700:7700
environment:
MEILI_MASTER_KEY: "123456789123456789"
volumes:
- meilisearch_data:/meili_data
profiles:
- all
- e2e
- endpoint
healthcheck:
test: set -o pipefail;curl -fsS http://host.docker.internal:7700/health | grep -q '{"status":"available"}'
retries: 3
timeout: 5s
meiliSearch-UI:
image: riccoxie/meilisearch-ui:latest
restart: unless-stopped
ports:
- 24900:24900
environment:
VITE_SINGLETON_MODE: true
VITE_SINGLETON_HOST: "http://host.docker.internal:7700"
VITE_SINGLETON_API_KEY: "123456789123456789"
Expected behavior Everything works fine.
Screenshots See above.
Environments (please complete the following information):
- OS: Windows (hosted in Linux container)
- Browser: Firefox
- Version: 0.11.5
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 19 (9 by maintainers)
@fcosrno Fixed in latest version v0.12.2. Just enjoy it.
For @Skyppid & all concerned, you can try latest version now,but wait for CI pls. It gives a new approach to use new env variables to enable singleton mode with docker images by following this section.
@MickLesk And browser debug log when error happened.