Skip to content

Instantly share code, notes, and snippets.

@the-wendell
Created May 4, 2021 08:08
Show Gist options
  • Select an option

  • Save the-wendell/04bab8d225744577c8f3b7b76dff4f9a to your computer and use it in GitHub Desktop.

Select an option

Save the-wendell/04bab8d225744577c8f3b7b76dff4f9a to your computer and use it in GitHub Desktop.
Docker Compose file for running Postregsql and Redis
version: '3'
services:
db:
image: postgres
ports:
- 5432:5432
volumes:
- data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: docker
POSTGRES_USER: docker
redis:
image: redis
ports:
- 6379:6379
command: redis-server
volumes:
- redis:/data
volumes:
redis:
driver: local
data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment