DATABASE_URL environment variable. Learn more about database configuration.
You can later use that image to run your application in a containerized environment eg. AWS ECS, AWS Fargate, Azure Container Instances, etc.
Building the Docker image
Running the Docker container
| Variable | Description | Example |
|---|---|---|
DATABASE_URL | Database connection URL. Spree supports PostgreSQL, MySQL, and SQLite | postgres://user:pass@localhost:5432/spree |
REDIS_URL | Redis/Valkey URL, used for background jobs processing,this could be your AWS ElastiCache instance or any other Redis/Valkey instance | redis://localhost:6379/0 |
SECRET_KEY_BASE | You can generate this by running bin/rails secret | 2fad5c0b79d25e4765d3018d8c740f8c3a665f0e5c... |

