Last active
March 13, 2024 10:55
-
-
Save MuktadirHassan/b3cbdf666a1ce7d073623a13c43e08ff to your computer and use it in GitHub Desktop.
simple redis compose file for local development
This file contains hidden or 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: | |
| 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