Created
March 6, 2017 11:28
-
-
Save aherve/aa329c7714f66d183b36bbe0a070f7d3 to your computer and use it in GitHub Desktop.
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
| transpiler: | |
| build: . | |
| volumes_from: | |
| - data | |
| # typescript should watch the src directory | |
| command: tsc -w --outDir dist/ ./src/index.ts | |
| server: | |
| build: . | |
| volumes_from: | |
| - data | |
| # nodemon should watch the dist directory | |
| command: nodemon -w dist/ dist/index.js | |
| data: | |
| build: . | |
| volumes: | |
| - .:/app # share your code with the containers | |
| - /app/dist # container has its own dist directory | |
| - /app/node_modules # container has its own node_modules directory | |
| command: echo 'ok' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment