Created
March 22, 2017 11:21
-
-
Save impankratov/8b1f468411af67d0a3e05b2ad6b88c18 to your computer and use it in GitHub Desktop.
docker-compose: REDIS + NodeJS + NGiNX for local dev
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: '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