Skip to content

Instantly share code, notes, and snippets.

@mdboop
Created November 20, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdboop/a61279db4c5765fa6c2d9b5703712a3f to your computer and use it in GitHub Desktop.
Save mdboop/a61279db4c5765fa6c2d9b5703712a3f to your computer and use it in GitHub Desktop.
A docker compose configuration for developing locally with Postgres and Redis
version: "3.8"
services:
redis:
image: "redis:alpine"
ports:
- 6379:6379
postgres:
image: "postgres:13.1"
ports:
- 5432:5432
volumes:
- .pgdata:/var/lib/postgresql/data
environment:
PGHOST: localhost
PGPORT: 5432
PGDATABASE: default
PGPASSWORD: dev_password
PGUSER: dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment