-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Obscure way to use unix socket for Redis #1785
Copy link
Copy link
Open
Labels
bugfeature: auto config (environment variables)Auto configuring via environment variablesAuto configuring via environment variablesintegration: memcacheIntegration with any Nextcloud supported Memcached (Redis, Memcached, etc)Integration with any Nextcloud supported Memcached (Redis, Memcached, etc)needs reviewNeeds confirmation this is still happening or relevantNeeds confirmation this is still happening or relevantupstream
Description
The parameter passing causes problems from the Docker container environment all the way to the phpredis->pconnect when using unix socket. The phpredis is kind of requiring the port setting to -1 if the host is actually a unix socket path starting with '/'. However in this image, the entrypoint.sh defaults REDIS_HOST_PORT to 6379, which would eventually passing into phpredis.
This would work though:
environment:
REDIS_HOST: /tmp/redis.sock
REDIS_HOST_PORT: -1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugfeature: auto config (environment variables)Auto configuring via environment variablesAuto configuring via environment variablesintegration: memcacheIntegration with any Nextcloud supported Memcached (Redis, Memcached, etc)Integration with any Nextcloud supported Memcached (Redis, Memcached, etc)needs reviewNeeds confirmation this is still happening or relevantNeeds confirmation this is still happening or relevantupstream
Type
Fields
Give feedbackNo fields configured for issues without a type.