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}