Skip to content

Instantly share code, notes, and snippets.

@MuktadirHassan
Last active March 13, 2024 10:55
Show Gist options
  • Select an option

  • Save MuktadirHassan/b3cbdf666a1ce7d073623a13c43e08ff to your computer and use it in GitHub Desktop.

Select an option

Save MuktadirHassan/b3cbdf666a1ce7d073623a13c43e08ff to your computer and use it in GitHub Desktop.
simple redis compose file for local development
version: "3.8"
services:
redis:
restart: always
container_name: redis-local
image: redis:7.2.4-alpine
ports:
- 6379:6379
volumes:
- redis-dev-data:/data
command: bash -c "redis-server --appendonly yes --requirepass local"
postgres:
restart: always
container_name: postgres-local
image: postgres:14.0-alpine
ports:
- 5432:5432
environment:
POSTGRES_USER: local
POSTGRES_PASSWORD: local
volumes:
- pg-data:/var/lib/postgresql/data
volumes:
redis-dev-data:
pg-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment