Created
November 20, 2020 14:36
-
-
Save mdboop/a61279db4c5765fa6c2d9b5703712a3f to your computer and use it in GitHub Desktop.
A docker compose configuration for developing locally with Postgres and Redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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