Skip to content

Instantly share code, notes, and snippets.

@impankratov
Created March 22, 2017 11:21
Show Gist options
  • Save impankratov/8b1f468411af67d0a3e05b2ad6b88c18 to your computer and use it in GitHub Desktop.
Save impankratov/8b1f468411af67d0a3e05b2ad6b88c18 to your computer and use it in GitHub Desktop.
docker-compose: REDIS + NodeJS + NGiNX for local dev
version: '2'
services:
db:
image: redis
volumes:
- db_data:/data
backend:
depends_on:
- db
image: node
ports:
- "3000:80"
volumes:
- ./src/backend:/usr/src/app
restart: always
frontend:
image: nginx
ports:
- "4000:80"
volumes:
- ./src/frontend:/usr/share/nginx/html
restart: always
volumes:
db_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment