Skip to content

Instantly share code, notes, and snippets.

@aherve
Created March 6, 2017 11:28
Show Gist options
  • Select an option

  • Save aherve/aa329c7714f66d183b36bbe0a070f7d3 to your computer and use it in GitHub Desktop.

Select an option

Save aherve/aa329c7714f66d183b36bbe0a070f7d3 to your computer and use it in GitHub Desktop.
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