Redis Deployment Example

This guide demonstrates how to deploy a Redis instance using Instantly.run.

Deployment Command

docker run --context=instantly --name redis-cache --domainname cache.example.com \
-p 6379:6379 -v ssd:/data

Command Breakdown

  • --context=instantly: Ensures the container is managed under the Instantly.run context.
  • --name redis-cache: Assigns the container a unique name for reference.
  • --domainname cache.example.com: Assigns the container a public domain (used for internal access).
  • -p 6379:6379: Maps the Redis service port to the host.
  • -v ssd:/data: Mounts a volume to persist Redis data.

Accessing the Deployment

  • Internal Hostname: The Redis instance will be accessible internally at cache-example-com:6379.
  • Public Access: Redis is not exposed publicly due to Instantly.run's HTTP/HTTPS limitation for public domains.

Modifying the Deployment

To make updates (e.g., change the volume mapping), re-run the command with updated parameters. For example, to change the volume mapping:

docker run --context=instantly --name redis-cache --domainname cache.example.com \
-p 6379:6379 -v hdd:/data

Additional Configuration

For more configuration options, refer to the Redis Docker Documentation.