You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
613 B

version: "3.9"
services:
redis:
image: redis:${REDIS_VERSION}
container_name: redis
restart: unless-stopped
entrypoint: ["/usr/local/bin/redis-entrypoint.sh"]
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
REDIS_MAXMEMORY: ${REDIS_MAXMEMORY}
REDIS_EVICTION_POLICY: ${REDIS_EVICTION_POLICY}
ENABLE_PERSIST: ${ENABLE_PERSIST}
volumes:
- ./scripts/redis-entrypoint.sh:/usr/local/bin/redis-entrypoint.sh:ro
- ./data:/data
ports:
- "${EXPOSE_PORT}:6379"
networks: [default]
networks:
default:
external: true
name: ${NETWORK_NAME}