1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00

Merge pull request #58 from anyproto/redisPort

docker-compose.yml fixed redis port
This commit is contained in:
Grigory Efimov 2024-05-17 13:59:37 -03:00 committed by GitHub
commit bb09c10c7b
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -41,13 +41,13 @@ services:
condition: service_healthy
image: "redis/redis-stack-server:${REDIS_VERSION}"
restart: always
command: redis-server --dir /data/ --appendonly yes --maxmemory 256mb --maxmemory-policy noeviction --protected-mode no --loadmodule /opt/redis-stack/lib/redisbloom.so
command: redis-server --port ${REDIS_PORT} --dir /data/ --appendonly yes --maxmemory 256mb --maxmemory-policy noeviction --protected-mode no --loadmodule /opt/redis-stack/lib/redisbloom.so
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- ./storage/redis/:/data/
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
test: [ "CMD", "redis-cli", "--raw", "-p", "${REDIS_PORT}", "incr", "ping" ]
interval: 10s
timeout: 30s
retries: 3