-
Notifications
You must be signed in to change notification settings - Fork 76
/
.env.example
17 lines (14 loc) · 970 Bytes
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Configuration for Redis connection settings
# Use this if Redis is hosted externally or deployed separately outside of Docker Compose.
# Replace "localhost" with the actual host address or IP of your Redis instance.
# REDIS_HOST="redis://<redis_host>:<redis_port>/<database_number>"
# Example for a hosted Redis:
# REDIS_HOST="redis://redis.example.com:6379/0"
# If using Docker Compose and Redis is one of the services defined within the docker-compose.yml file,
# you can use the service name 'redis' as the host. This ensures the internal communication between services.
REDIS_HOST=redis://redis:6379/0
# Explanation:
# - redis://: The protocol used by Redis.
# - redis: The hostname where Redis is running. In Docker Compose, this matches the service name defined in the compose file.
# - 6379: The default port on which Redis is running.
# - /0: The Redis database number to connect to. Redis supports multiple databases, and this specifies which one to use.