Skip to content

Instantly share code, notes, and snippets.

@dmigo
Created May 8, 2019 21:21
Show Gist options
  • Save dmigo/fce9cc5834300492da2843c00bea2c79 to your computer and use it in GitHub Desktop.
Save dmigo/fce9cc5834300492da2843c00bea2c79 to your computer and use it in GitHub Desktop.
Docker compose that has redis
version: '3.6'
services:
# app:
# build:
# context: ./app
# depends_on:
# - redis
# environment:
# - REDIS_HOST=redis
# ports:
# - "5000:5000"
redis:
image: redis:3.2-alpine
volumes:
- redis_data:/data
ports:
- "6379:6379"
volumes:
redis_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment