There are several good ways to run Postgres and Redis on an M-series Mac. They differ in where the process runs, how you manage versions and what the license asks of you.
Versions, prices and terms below were read from the linked vendor pages on 2026-12-05. Check those pages for current figures.
Pick by situation#
| Option | Runs as | Postgres | Redis | Cost or terms |
|---|---|---|---|---|
| Homebrew | Native service | Yes | Yes | Free |
| Postgres.app | Native Mac app | Yes | Not mentioned | PostgreSQL License |
| DBngin | Native, managed by an app | Yes | Yes | Free |
| Docker Desktop or OrbStack | Containers | Yes | Yes | Depends on use, see below |
| Levelrail for Mac | Private Linux VM | Yes | Yes | Free app |
Homebrew#
The postgresql@18 and redis formulae have bottles for Apple silicon. Their pages listed 18.7 and 8.12.1.
brew install postgresql@18 redis
brew services start postgresql@18
brew services start redisThe versioned Postgres formula is keg-only, so call its tools by path or add that folder to your PATH:
"$(brew --prefix)/opt/postgresql@18/bin/createdb" myapp
"$(brew --prefix)/opt/postgresql@18/bin/psql" myapp -c 'select version();'
redis-cli pingredis-cli ping answers PONG when the server is up. Stop either one with brew services stop. Redis documents the Homebrew install too.
Choose it if you want plain services with no VM and you are comfortable in Terminal.
Postgres.app#
Postgres.app is PostgreSQL packaged as a standard Mac app. Its home page lists these defaults: host localhost, port 5432, your system user name as user and database, and no password.
To use its command line tools, the same page gives:
sudo mkdir -p /etc/paths.d && echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresappChoose it if you only need Postgres and want to start it with a click.
DBngin#
DBngin, from the TablePlus team, manages database versions in a Mac app. Its site names PostgreSQL, MySQL, MariaDB and Redis, says it runs them natively with no Docker or VM, lists Apple silicon support, and says it is free.
Choose it if you switch between database versions and want a graphical list.
Containers: Docker Desktop or OrbStack#
With a container runtime, the official postgres and redis images give you a separate database per project. These commands follow those image pages:
docker run --name dev-postgres -e POSTGRES_PASSWORD=change-me \
-p 127.0.0.1:5432:5432 -v dev-pg:/var/lib/postgresql -d postgres:18
docker run --name dev-redis -p 127.0.0.1:6379:6379 \
-v dev-redis:/data -d redis redis-server --save 60 1Two details matter. The 127.0.0.1: prefix keeps the ports off your network, which counts for Redis because the image page notes protected mode is off. And PostgreSQL 18 moved the image’s volume to /var/lib/postgresql. For 17 and below, mount /var/lib/postgresql/data instead.
Licensing differs:
- Docker Desktop is free for personal use, education, non-commercial open source and small businesses (fewer than 250 employees and less than $10 million USD in annual revenue). Other professional use needs a paid subscription.
- OrbStack is free for personal, non-commercial use. Business use is listed at $8 per user per month. Its FAQ states macOS 14 or newer.
Choose containers if your project already has a Compose file, or production runs the same images.
Levelrail for Mac#
Levelrail for Mac creates local Postgres and Redis on local ports, and deploys your app folder next to them. Everything runs in a private Linux VM, and setup does not install Docker on your Mac. We make it, so weigh this section with that in mind.
It needs Apple silicon, macOS 13 or later, 6 GB of memory or more and at least 10 GB of free disk. The app is free and proprietary, and the server inside it is open source under Apache 2.0.
Choose it if you want an app and its databases managed together on a deploy platform you can also run on a server.
When a port is taken#
Two services often want 5432 or 6379. Before you add a second option, see what already listens there:
lsof -nP -iTCP:5432 -sTCP:LISTEN
lsof -nP -iTCP:6379 -sTCP:LISTENNo output means none of your processes is listening there. Otherwise stop that service or pick another port.
Take your data with you#
A plain SQL dump moves a Postgres database between setups:
pg_dump --no-owner --no-privileges "$LOCAL_DATABASE_URL" > myapp.sqlUse a pg_dump at least as new as the server you read from. When the data needs to live on an always-on machine, see moving a local app to your own Linux server.
How this was checked#
The vendor facts come from the pages linked in each section. The install, docker run and database commands are based on those pages and standard Homebrew and PostgreSQL usage. They were not run as a fresh setup for this post.
Docker, OrbStack, Postgres.app, DBngin, TablePlus, PostgreSQL, Redis and Homebrew are names or trademarks of their owners, used here to identify them. Levelrail is not affiliated with them. See also the Mac app and the server install.
Frequently asked questions #
What is the quickest way to get Postgres on a Mac?
If you already use Homebrew, brew install and then brew services start. If you prefer an app with a window, look at Postgres.app or DBngin.
Which options give me both Postgres and Redis?
Homebrew, DBngin, containers with Docker Desktop or OrbStack, and Levelrail for Mac. The Postgres.app pages we read describe Postgres only.
Where should the volume go for a PostgreSQL 18 container?
Mount it at /var/lib/postgresql for 18 and later, and at /var/lib/postgresql/data for 17 and below, as the official image page describes.