Re-opening issue #5044: SearXNG can't connect to Valkey. #418
-
Link to issue searxng/searxng#5044 .
Also tried the I'm using services:
# -- SeaXNG --
searxng:
container_name: "search.myinstance.com-searxng"
image: searxng/searxng:latest
networks:
- searxng
ports:
- 127.0.0.1:2001:8080
volumes:
- searxng_config:/etc/searxng
- searxng_data:/var/cache/searxng
environment:
- BASE_URL=http://localhost
- SEARXNG_PORT=2001
- SEARXNG_PUBLIC_INSTANCE=true
- SEARXNG_VALKEY_URL=valkeys://127.0.0.1:6379/0
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
restart: unless-stopped
valkey:
container_name: "search.myinstance.com-valkeyDB"
image: valkey/valkey:alpine
command: valkey-server --save 30 1 --loglevel warning --maxmemory 128mb --protected-mode no
networks:
- searxng
ports:
- 127.0.0.1:6379:6379
volumes:
- valkeyDB_config:/etc/valkey/
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
restart: unless-stopped
# -- SeaXNG --
# Other Services...
networks:
searxng:
name: "search.myinstance.com"
volumes:
# -- SeaXNG --
searxng_data:
name: "search.myinstance.com-searxng-data"
external: true
searxng_config:
name: "search.myinstance.com-searxng-config"
external: true
valkeyDB_config:
name: "search.myinstance.com-valkeyDB-config"
external: true
# -- SeaXNG --
# ... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
As both containers are in the same network, you could use the Valkey container name as a hostname directly By the way, we didn't test if Valkey works properly under TLS, as it's running in an isolated network shouldn't be kind of an issue here, so using the unencrypted proto (default) should be fine in your case. |
Beta Was this translation helpful? Give feedback.
-
You're right, I put Btw I reverse proxy my container through
Not gonna lie, I'm very new to |
Beta Was this translation helpful? Give feedback.
-
Using Valkey's container_name( |
Beta Was this translation helpful? Give feedback.
Using Valkey's container_name(
search.myinstance.com-valkeyDB:6379
) works. also I was usingvalkeys:
instead ofvalkey:
plus I mistyped some parts of the URL! Thanks!