Local services
Aether includes a Docker Compose configuration for starting a PostgreSQL server, powered by Supabase's fork. By default, this database should be configured using the POSTGRES_*
environment variables — added to .env.defaults
.
Adding Services
Consider your application requires a Redis database to provides its functionality. While developing your application, you can easily start-and-stop this (and your Postgres) database using a single command by adding a service
definition:
This example uses the Bitnami Redis image, as it supports configuration via environment variables.
services:
postgres:
...
redis:
image: bitnami/redis:7.0.4
env_file:
- .env.defaults
ports:
- 6379:6379
Then, in .env.defaults
(so it's available to all members of your team), add a password for your Redis database.
REDIS_PASSWORD=secret