Skip to content

Instantly share code, notes, and snippets.

@junibrosas
Created February 28, 2022 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junibrosas/ffdb9dbf4d777295277a6733aa8ba2cc to your computer and use it in GitHub Desktop.
Save junibrosas/ffdb9dbf4d777295277a6733aa8ba2cc to your computer and use it in GitHub Desktop.
Docker with Redis
redis:
image: redis
container_name: cache
expose:
- 6379
app:
build: ./
volumes:
- ./:/var/www/app
links:
- redis
ports:
- 3000:3000
environment:
- REDIS_URL=redis://cache
- NODE_ENV=development
- PORT=3000
command:
sh -c 'npm i && node server.js'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment