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
# Backend API service example, uses nodemon to keep server alive and watch for changes. | |
backendapi: | |
# Tells docker-compose where ./backendapi/Dockerfile is | |
build: ./backendapi | |
# Allows live editing of ./backendapi/app | |
volumes: | |
- ./backendapi/app:/app | |
# Launch Nodemon, using | |
# -L legacy file watching for compatibility with boot2docker / docker-machine. | |
# --watch defined to avoid watching the whole container and causing high CPU usage |